Module: VagrantPlugins::GuestOmniOS::Cap::ChefInstall

Defined in:
lib/vagrant-guest-omnios/cap/chef_install.rb

Class Method Summary collapse

Class Method Details

.chef_install(machine, version, prerelease, download_path) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/vagrant-guest-omnios/cap/chef_install.rb', line 8

def self.chef_install(machine, version, prerelease, download_path)
  su_cmd = machine.config.solaris.suexec_cmd

  machine.communicate.execute("#{su_cmd} pkg list --no-refresh web/curl > /dev/null 2>&1 || pkg install -q --accept web/curl")

  command = VagrantPlugins::Chef::Omnibus.build_command(version, prerelease, download_path)
  machine.communicate.execute(su_cmd + ' ' + command)
end