vagrant/plugins/provisioners/chef/cap/redhat/chef_install.rb

19 lines
453 B
Ruby
Raw Normal View History

require_relative "../../omnibus"
module VagrantPlugins
module Chef
module Cap
module Redhat
module ChefInstall
def self.chef_install(machine, version, prerelease, download_path)
machine.communicate.sudo("yum install -y -q curl")
command = Omnibus.build_command(version, prerelease, download_path)
machine.communicate.sudo(command)
end
end
end
end
end
end