onering-client 0.0.87 → 0.0.88

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -2,7 +2,7 @@ $: << File.expand_path(File.dirname(__FILE__))
2
2
 
3
3
  module Onering
4
4
  module Client
5
- VERSION = "0.0.87"
5
+ VERSION = "0.0.88"
6
6
 
7
7
  class Error < Exception; end
8
8
  class FatalError < Error; end
@@ -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
- raise "Unknown output format #{format.inspect}"
56
+ Onering::Logger.error("Unknown output format #{format.inspect}", "Onering::CLI")
55
57
  end
56
58
 
57
59
  nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onering-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.87
4
+ version: 0.0.88
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: