Class: PostRunner::Main
- Inherits:
-
Object
- Object
- PostRunner::Main
- Defined in:
- lib/postrunner/Main.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Main
constructor
A new instance of Main.
Constructor Details
#initialize(args) ⇒ Main
Returns a new instance of Main.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/postrunner/Main.rb', line 35 def initialize(args) @filter = nil @name = nil @attribute = nil @value = nil @activities = nil @monitoring = nil @db_dir = File.join(ENV['HOME'], '.postrunner') return if (args = (args)).nil? @cfg = RuntimeConfig.new(@db_dir) @db = PEROBS::Store.new(File.join(@db_dir, 'database')) execute_command(args) end |