Class: PostRunner::Main

Inherits:
Object
  • Object
show all
Defined in:
lib/postrunner/Main.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Main

Returns a new instance of Main.



19
20
21
22
23
24
25
26
27
28
# File 'lib/postrunner/Main.rb', line 19

def initialize(args)
  @filter = nil
  @name = nil
  @activities = nil
  @db_dir = File.join(ENV['HOME'], '.postrunner')

  return if (args = parse_options(args)).nil?

  execute_command(args)
end