2014-10-31 20:06:05 +00:00
|
|
|
require_relative "../../omnibus"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module Chef
|
|
|
|
module Cap
|
|
|
|
module Redhat
|
|
|
|
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("yum install -y -q 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
|