Module: Onering::CLI::Fact
- Defined in:
- lib/onering/cli/fact.rb
Class Method Summary collapse
Class Method Details
.configure(global = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/onering/cli/fact.rb', line 4 def self.configure(global={}) Onering::Reporter.setup() @opts = ::Trollop:: do "Return the value of an internal fact.\n\nUsage:\n onering [global] fact [name]\n\n" end end |
.run(args) ⇒ Object
18 19 20 |
# File 'lib/onering/cli/fact.rb', line 18 def self.run(args) return Onering::Util.fact(args[0]) end |