lib/chef/knife/winrm_base.rb in knife-windows-1.9.1 vs lib/chef/knife/winrm_base.rb in knife-windows-1.9.6
- old
+ new
@@ -56,10 +56,10 @@
:description => "The WinRM shell type. Valid choices are [cmd, powershell, elevated]. 'elevated' runs powershell in a scheduled task",
:default => :cmd,
:proc => Proc.new { |shell| shell.to_sym }
option :winrm_transport,
- :short => "-t TRANSPORT",
+ :short => "-w TRANSPORT",
:long => "--winrm-transport TRANSPORT",
:description => "The WinRM transport type. Valid choices are [ssl, plaintext]",
:default => 'plaintext',
:proc => Proc.new { |transport| Chef::Config[:knife][:winrm_port] = '5986' if transport == 'ssl'
Chef::Config[:knife][:winrm_transport] = transport }