lib/chef/provisioning/convergence_strategy/install_sh.rb in chef-provisioning-1.6.0 vs lib/chef/provisioning/convergence_strategy/install_sh.rb in chef-provisioning-1.7.0

- old
+ new

@@ -1,8 +1,8 @@ require 'chef/provisioning/convergence_strategy/precreate_chef_objects' require 'pathname' -require 'mixlib/install' +require 'mixlib/install/script_generator' class Chef module Provisioning class ConvergenceStrategy class InstallSh < PrecreateChefObjects @@ -39,10 +39,10 @@ if convergence_options[:install_sh_arguments] opts['install_flags'] = convergence_options[:install_sh_arguments] end - install_command = Mixlib::Install.new(chef_version, false, opts).install_command + install_command = Mixlib::Install::ScriptGenerator.new(chef_version, false, opts).install_command machine.write_file(action_handler, install_sh_path, install_command, :ensure_dir => true) machine.set_attributes(action_handler, install_sh_path, :mode => '0755') machine.execute(action_handler, "sh -c #{install_sh_path}") end