onering-client 0.0.87 → 0.0.88
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.
- data/bin/onering +0 -1
- data/lib/onering.rb +1 -1
- data/lib/onering/cli.rb +3 -1
- metadata +1 -1
data/bin/onering
CHANGED
@@ -48,7 +48,6 @@ if plugins.include?(plugin)
|
|
48
48
|
|
49
49
|
Onering::Logger.debug("Executing plugin #{plugin}\#run()", $0)
|
50
50
|
rv = plugin.run(ARGV)
|
51
|
-
Onering::Logger.debug("Outputting data as #{global[:format]}:", $0)
|
52
51
|
Onering::CLI.output(rv, global[:format])
|
53
52
|
|
54
53
|
rescue Onering::API::Errors::Exception => e
|
data/lib/onering.rb
CHANGED
data/lib/onering/cli.rb
CHANGED
@@ -26,6 +26,8 @@ module Onering
|
|
26
26
|
def self.output(data, format)
|
27
27
|
return nil if @_args[:quiet]
|
28
28
|
|
29
|
+
Onering::Logger.debug("Outputting data as #{format}:", "Onering::CLI")
|
30
|
+
|
29
31
|
case format
|
30
32
|
when 'text'
|
31
33
|
if data.is_a?(Hash)
|
@@ -51,7 +53,7 @@ module Onering
|
|
51
53
|
puts YAML.dump(data)
|
52
54
|
|
53
55
|
else
|
54
|
-
|
56
|
+
Onering::Logger.error("Unknown output format #{format.inspect}", "Onering::CLI")
|
55
57
|
end
|
56
58
|
|
57
59
|
nil
|