kumogata2 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kumogata2/cli/option_parser.rb +3 -10
- data/lib/kumogata2/client.rb +6 -1
- data/lib/kumogata2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 206441cbb43d9acd13aaff06c74e247cd4700c54
|
4
|
+
data.tar.gz: 4d6d91ff40995f2bf3dc0adef4a73dd5e2ed7995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93226ff23b1ebf7711394396376e038186a1cbebeae956f48de860e193a664c2b9106aa79e50ed122e4349f71c26dd1a9dc599bbea4db34ca0990c73f4341dfc
|
7
|
+
data.tar.gz: 2679e80c047298d99ac911f6da1909cfc9195037dc12842b074b8d0fbc7b28ac919cf416a08afe7aaeece4297b96ac0efea971783741476d97140ce9fca4a41a
|
@@ -120,6 +120,7 @@ module Kumogata2::CLI
|
|
120
120
|
use_previous_template: :boolean,
|
121
121
|
stack_policy_during_update_body: nil,
|
122
122
|
stack_policy_during_update_url: nil,
|
123
|
+
tags: Array,
|
123
124
|
}.each do |key, type|
|
124
125
|
opt_str = key.to_s.gsub('_', '-')
|
125
126
|
opt_val = key.to_s.upcase
|
@@ -134,14 +135,6 @@ module Kumogata2::CLI
|
|
134
135
|
end
|
135
136
|
end
|
136
137
|
|
137
|
-
opt.on('', '--tags TAGS', Array) {|v|
|
138
|
-
v.each do |vv|
|
139
|
-
key, value = vv.split('=')
|
140
|
-
options[:tags] = [] if options[:tags].nil?
|
141
|
-
options[:tags] << { key: key, value: value }
|
142
|
-
end
|
143
|
-
}
|
144
|
-
|
145
138
|
opt.on('' , '--result-log PATH') {|v| options[:result_log] = v }
|
146
139
|
opt.on('' , '--command-result-log PATH') {|v| options[:command] = v }
|
147
140
|
opt.on('' , '--[no-]detach') {|v| options[:detach] = v }
|
@@ -191,8 +184,8 @@ module Kumogata2::CLI
|
|
191
184
|
Kumogata2::Logger.instance.set_debug(options.debug?)
|
192
185
|
|
193
186
|
Aws.config.update(
|
194
|
-
:
|
195
|
-
:
|
187
|
+
http_wire_trace: true,
|
188
|
+
logger: Kumogata2::Logger.instance
|
196
189
|
)
|
197
190
|
end
|
198
191
|
|
data/lib/kumogata2/client.rb
CHANGED
@@ -233,7 +233,8 @@ class Kumogata2::Client
|
|
233
233
|
:capabilities,
|
234
234
|
:resource_types,
|
235
235
|
:stack_policy_body,
|
236
|
-
:stack_policy_url
|
236
|
+
:stack_policy_url,
|
237
|
+
:tags)
|
237
238
|
)
|
238
239
|
|
239
240
|
event_log = create_event_log(stack)
|
@@ -450,6 +451,10 @@ class Kumogata2::Client
|
|
450
451
|
def set_api_params(params, *keys)
|
451
452
|
{}.tap do |h|
|
452
453
|
keys.each do |k|
|
454
|
+
@options[k].collect! do |v|
|
455
|
+
key, value = v.split('=')
|
456
|
+
{ key: key, value: value }
|
457
|
+
end if k == :tags
|
453
458
|
h[k] = @options[k] if @options[k]
|
454
459
|
end
|
455
460
|
end
|
data/lib/kumogata2/version.rb
CHANGED