7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/chef/knife/zcloudjp_base.rb', line 7
def self.included(includer)
includer.class_eval do
deps do
require 'net/ssh/multi'
require 'readline'
require 'chef/json_compat'
require 'faraday'
end
option :zcloudjp_api_token,
:short => "-K KEY",
:long => "--zcloudjp-api-token",
:description => "Your Z cloud API token",
:proc => Proc.new { |key| Chef::Config[:knife][:zcloudjp_api_token] = key }
option :zcloudjp_api_url,
:long => "--zcloudjp-api-auth-url URL",
:description => "Your Z Cloud API url",
:default => "https://my.z-cloud.jp",
:proc => Proc.new { |url| Chef::Config[:knife][:zcloudjp_api_url] = url }
end
end
|