Class: Rack::App::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/app/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.rack_appObject



19
20
21
# File 'lib/rack/app/cli.rb', line 19

def rack_app
  Rack::App::CLI::Fetcher.rack_app
end

.runnerObject



15
16
17
# File 'lib/rack/app/cli.rb', line 15

def runner
  Rack::App::CLI::Runner.new(rack_app)
end

.start(argv) ⇒ Object



11
12
13
# File 'lib/rack/app/cli.rb', line 11

def start(argv)
  runner.start(argv)
end

Instance Method Details

#commandsObject



30
31
32
# File 'lib/rack/app/cli.rb', line 30

def commands
  @commands ||= {}
end

#merge!(cli) ⇒ Object



25
26
27
28
# File 'lib/rack/app/cli.rb', line 25

def merge!(cli)
  commands.merge!(cli.commands)
  self
end