26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# File 'lib/chef/knife/cloud/vcair_service_options.rb', line 26
def self.included(includer)
includer.class_eval do
include FogOptions
option :vcair_api_version,
:long => "--vcair-api-version VERSION",
:description => "The VCAIR API version",
:default => '5.6',
:proc => Proc.new { |u| Chef::Config[:knife][:vcair_api_version] = u }
option :vcair_api_host,
:short => "-U API_HOST",
:long => "--vcair-api-host HOST",
:description => "The VCAIR API endpoint",
:proc => Proc.new { |u| Chef::Config[:knife][:vcair_api_host] = u }
option :vcair_api_path,
:long => '--vcair-api-path PATH',
:description => 'The API service endpoint path, if different from the default "/api"',
:proc => Proc.new { |path| Chef::Config[:knife][:vcair_api_path] = path}
option :vcair_org,
:short => "-O ORG",
:long => "--vcair-org ORG",
:description => "The VCAIR ORG",
:proc => Proc.new { |u| Chef::Config[:knife][:vcair_org] = u }
option :vcair_username,
:short => "-A USERNAME",
:long => "--vcair-username USERNAME",
:description => "Your VCAIR username",
:proc => Proc.new { |username| Chef::Config[:knife][:vcair_username] = username }
option :vcair_password,
:short => "-K PASSWORD",
:long => "--vcair-password PASSWORD",
:description => "Your VCAIR password",
:proc => Proc.new { |key| Chef::Config[:knife][:vcair_password] = key }
option :vcair_vdc,
:long => "--vcair-vdc VDCNAME",
:description => "Your VCAIR VDC",
:default => nil,
:proc => Proc.new { |key| Chef::Config[:knife][:vcair_vdc] = key }
option :vcair_show_progress,
:long => "--vcair-show-progress BOOL",
:description => "Show VCAIR API Progress",
:default => false
end
end
|