lib/chef/knife/winrm_session.rb in knife-windows-1.0.0 vs lib/chef/knife/winrm_session.rb in knife-windows-1.1.0

- old
+ new

@@ -14,17 +14,19 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # +require 'chef/application' require 'winrm' class Chef class Knife class WinrmSession attr_reader :host, :endpoint, :port, :output, :error, :exit_code def initialize(options) + Chef::Application.new.configure_proxy_environment_variables @host = options[:host] @port = options[:port] url = "#{options[:host]}:#{options[:port]}/wsman" scheme = options[:transport] == :ssl ? 'https' : 'http' @endpoint = "#{scheme}://#{url}" \ No newline at end of file