lib/kumogata/client.rb in kumogata-0.5.2 vs lib/kumogata/client.rb in kumogata-0.5.3
- old
+ new
@@ -519,10 +519,15 @@
end
def build_update_options(template)
opts = {:template => template}
add_parameters(opts)
+
+ [:capabilities].each do |k|
+ opts[k] = @options[k] if @options[k]
+ end
+
return opts
end
def add_parameters(hash)
if @options.parameters? and not @options.parameters.empty?
@@ -587,9 +592,13 @@
if result[:code]
raise result.values_at(:code, :message).join(': ')
end
Kumogata.logger.info('Template validated successfully'.green)
+
+ if @options.verbose
+ Kumogata.logger.info(JSON.pretty_generate(JSON.parse(result.to_json)).colorize_as(:json))
+ end
end
def events_for(stack)
stack.events.map do |event|
event_hash = {}