lib/honeybadger/cli/main.rb in honeybadger-2.0.12 vs lib/honeybadger/cli/main.rb in honeybadger-2.1.0.beta.1
- old
+ new
@@ -45,10 +45,11 @@
response = config.backend.notify(:deploys, payload)
if response.success?
say("Deploy notification for #{payload[:environment]} complete.", :green)
else
say("Deploy notification failed: #{response.code}", :red)
+ exit(1)
end
rescue => e
say("An error occurred during deploy notification: #{e}\n\t#{e.backtrace.join("\n\t")}", :red)
exit(1)
end
@@ -177,9 +178,10 @@
else
dotted_key = (hierarchy + [key]).join('.').to_sym
say(tab_indent(hierarchy.size) << "#{key}:")
indent = tab_indent(hierarchy.size+1)
say(indent + "Description: #{Config::OPTIONS[dotted_key][:description]}")
+ say(indent + "Type: #{Config::OPTIONS[dotted_key].fetch(:type, String).name.split('::').last}")
say(indent + "Default: #{Config::OPTIONS[dotted_key][:default].inspect}")
say(indent + "Current: #{value.inspect}")
end
end
end