Module: Chef::Knife::WinrmSharedOptions

Defined in:
lib/chef/knife/winrm_shared_options.rb

Class Method Summary collapse

Class Method Details

.included(includer) ⇒ Object

Shared command line options for knife winrm and knife wsman test



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/chef/knife/winrm_shared_options.rb', line 28

def self.included(includer)
  includer.class_eval do
    option :manual,
      :short => "-m",
      :long => "--manual-list",
      :boolean => true,
      :description => "QUERY is a space separated list of servers",
      :default => false

    option :attribute,
      :short => "-a ATTR",
      :long => "--attribute ATTR",
      :description => "The attribute to use for opening the connection - default is fqdn",
      :default => "fqdn"
  end
end