Class: FacterDB::Bin

Inherits:
Object
  • Object
show all
Defined in:
lib/facterdb/bin.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Bin

Returns a new instance of Bin.


6
7
8
# File 'lib/facterdb/bin.rb', line 6

def initialize(args)
  @args = args
end

Instance Method Details

#runObject


10
11
12
# File 'lib/facterdb/bin.rb', line 10

def run
  puts JSON.pretty_generate(FacterDB::get_os_facts('*', @args[0]))
end