lib/chef/provisioning/convergence_strategy/install_msi.rb in chef-provisioning-0.20 vs lib/chef/provisioning/convergence_strategy/install_msi.rb in chef-provisioning-0.20.1

- old
+ new

@@ -3,18 +3,20 @@ class Chef module Provisioning class ConvergenceStrategy class InstallMsi < PrecreateChefObjects - @@install_msi_cache = {} - def initialize(convergence_options, config) super + @chef_version ||= convergence_options[:chef_version] + @prerelease ||= convergence_options[:prerelease] @install_msi_url = convergence_options[:install_msi_url] || 'https://www.chef.io/chef/install.msi' @install_msi_path = convergence_options[:install_msi_path] || "$env:TEMP\\#{File.basename(@install_msi_url)}" @chef_client_timeout = convergence_options.has_key?(:chef_client_timeout) ? convergence_options[:chef_client_timeout] : 120*60 # Default: 2 hours end + attr_reader :chef_version + attr_reader :prerelease attr_reader :install_msi_url attr_reader :install_msi_path def setup_convergence(action_handler, machine) if !convergence_options.has_key?(:client_rb_path) || !convergence_options.has_key?(:client_pem_path)