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

- old
+ new

@@ -1,7 +1,7 @@ require 'chef/provisioning/convergence_strategy/precreate_chef_objects' -require 'mixlib/install' +require 'mixlib/install/script_generator' require 'pathname' class Chef module Provisioning class ConvergenceStrategy @@ -34,10 +34,10 @@ opts["https_proxy"] = convergence_options[:bootstrap_proxy] end opts["install_msi_url"] = convergence_options[:install_msi_url] if convergence_options[:install_msi_url] super - install_command = Mixlib::Install.new(chef_version, true, opts).install_command + install_command = Mixlib::Install::ScriptGenerator.new(chef_version, true, opts).install_command machine.write_file(action_handler, convergence_options[:install_script_path], install_command) action_handler.open_stream(machine.node['name']) do |stdout| action_handler.open_stream(machine.node['name']) do |stderr| machine.execute(action_handler, "powershell.exe -ExecutionPolicy Unrestricted -NoProfile \"& \"\"#{convergence_options[:install_script_path]}\"\"\"",