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