Created
December 29, 2011 21:59
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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