Sha256: 7993b086442d4cf1603cce3e1a8d7174e099bfc3f9c644cd2af3eb18979b681f

Contents?: true

Size: 413 Bytes

Versions: 13

Compression:

Stored size: 413 Bytes

Contents

module Onering
  module CLI
    class Fact < Plugin
      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

13 entries across 13 versions & 2 rubygems

Version Path
onering-agent-0.4.4 lib/onering/cli/fact.rb
onering-agent-0.4.3 lib/onering/cli/fact.rb
onering-client-0.4.3 lib/onering/cli/fact.rb
onering-client-0.4.2 lib/onering/cli/fact.rb
onering-client-0.4.1 lib/onering/cli/fact.rb
onering-client-0.4.0 lib/onering/cli/fact.rb
onering-client-0.3.4 lib/onering/cli/fact.rb
onering-client-0.3.3 lib/onering/cli/fact.rb
onering-client-0.3.2 lib/onering/cli/fact.rb
onering-client-0.3.1 lib/onering/cli/fact.rb
onering-client-0.3.0 lib/onering/cli/fact.rb
onering-client-0.2.4 lib/onering/cli/fact.rb
onering-client-0.2.3 lib/onering/cli/fact.rb