lib/onering/cli/fact.rb in onering-client-0.1.7 vs lib/onering/cli/fact.rb in onering-client-0.2.0

- old
+ new

@@ -1,11 +1,9 @@ module Onering module CLI module Fact def self.configure(global={}) - Onering::Reporter.setup() - @opts = ::Trollop::options do banner <<-EOS Return the value of an internal fact. Usage: @@ -14,9 +12,10 @@ EOS end end def self.run(args) + args[0] = :hardwareid if args[0] and args[0] == 'id' return Onering::Util.fact(args[0]) end end end end \ No newline at end of file