Skip to content

Instantly share code, notes, and snippets.

@mpasternacki
Created December 29, 2011 21:59
Show Gist options
  • Save mpasternacki/1536398 to your computer and use it in GitHub Desktop.
Save mpasternacki/1536398 to your computer and use it in GitHub Desktop.
Opscode Chef definition to upgrade Module::Build using perl cookbook's cpan_install script
# Example usage:
# perl_module_build "0.3601"
define :perl_module_build do
execute "/usr/local/bin/cpan_install Module::Build" do
cwd "/root"
path [ "/usr/local/bin", "/usr/bin", "/bin" ]
not_if { `perl -mModule::Build -e 'print $Module::Build::VERSION'`.to_f >= params[:name].to_f }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment