kumogata2 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5690b875a2d85b369acf8f3b953cbcbd1718325e
4
- data.tar.gz: 44362cd74860fe002fea3f77a70b15db34167c8d
3
+ metadata.gz: 206441cbb43d9acd13aaff06c74e247cd4700c54
4
+ data.tar.gz: 4d6d91ff40995f2bf3dc0adef4a73dd5e2ed7995
5
5
  SHA512:
6
- metadata.gz: b930d4b4a6e2079ae3a9f67faec122b59ded4b69e35faed40ef889e8b047757b28a98ad05801565df135fc5e7b5045a2cc32479a4b04b1405579ff90ec40c494
7
- data.tar.gz: 37396795ed500419f6139c1da590e698ccd660df2aeb3c5fb1ceb9cdd7fe8041d030a8f35175dfc373d98f5917c990a202caa28d4149e63905b04e71748bf750
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
- :http_wire_trace => true,
195
- :logger => Kumogata2::Logger.instance
187
+ http_wire_trace: true,
188
+ logger: Kumogata2::Logger.instance
196
189
  )
197
190
  end
198
191
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Kumogata2
2
- VERSION = '0.1.11'
2
+ VERSION = '0.1.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumogata2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara