Method: Chef::Provider::Package::Portage#install_package
- Defined in:
- lib/chef/provider/package/portage.rb
#install_package(name, version) ⇒ Object
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/chef/provider/package/portage.rb', line 99 def install_package(name, version) pkg = "=#{name}-#{version}" if(version =~ /^\~(.+)/) # If we start with a tilde pkg = "~#{name}-#{$1}" end run_command_with_systems_locale( :command => "emerge -g --color n --nospinner --quiet#{(@new_resource.)} #{pkg}" ) end |