Class: Launchr::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/launchr/application.rb

Overview

The Launchr Application Object. Instantiated for command-line mode

See Also:

Instance Method Summary collapse

Constructor Details

#initialize(*args, &blk) ⇒ Application

Returns a new instance of Application.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/launchr/application.rb', line 10

def initialize *args, &blk
  @cli = Launchr::CLI.new

  Launchr.load_default

  Launchr.config[:args] = @cli.parse
  Launchr.import_args

  @commands = Launchr::Commands.new
  @commands.run
end