2014-10-31 20:06:05 +00:00
|
|
|
require_relative "../../omnibus"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module Chef
|
|
|
|
module Cap
|
|
|
|
module Debian
|
|
|
|
module ChefInstall
|
2014-12-16 22:40:22 +00:00
|
|
|
def self.chef_install(machine, version, prerelease, download_path)
|
2014-10-31 20:06:05 +00:00
|
|
|
machine.communicate.sudo("apt-get update -y -qq")
|
|
|
|
machine.communicate.sudo("apt-get install -y -qq curl")
|
|
|
|
|
2014-12-16 22:40:22 +00:00
|
|
|
command = Omnibus.build_command(version, prerelease, download_path)
|
2014-10-31 20:06:05 +00:00
|
|
|
machine.communicate.sudo(command)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|