Module: VagrantConverge::Cap::Guest::POSIX::ConvergeInstall
- Defined in:
- lib/vagrant-converge/cap/guest/posix/converge_install.rb
Class Method Summary collapse
Class Method Details
.converge_install(machine, version) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/vagrant-converge/cap/guest/posix/converge_install.rb', line 8 def self.converge_install(machine, version) url="https://dl.bintray.com/chrisaubuchon/converge/install.sh" command = "curl -sL #{url} | sh -s --" if version != :latest command << " -v \"#{version}\"" end machine.communicate.sudo(command) end |