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