Sha256: 467d69865ea964fdb5fb85a54e1e4ad530615ec3a9012d19c6b62330bf884e14

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

module Onering
  module CLI
    module Fact
      def self.configure(global={})
        @opts = ::Trollop::options do
          banner <<-EOS
Return the value of an internal fact.

Usage:
    onering [global] fact [name]

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onering-client-0.2.1 lib/onering/cli/fact.rb
onering-client-0.2.0 lib/onering/cli/fact.rb