Class: Tennpipes::Cli::Launcher

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/tennpipes-base/cli/launcher.rb

Direct Known Subclasses

Base

Instance Method Summary collapse

Instance Method Details

#start(*args) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/tennpipes-base/cli/launcher.rb', line 22

def start(*args)
  prepare :start
  require File.expand_path("../adapter", __FILE__)
  require File.expand_path('config/boot.rb')

  if options[:server_options]
    puts server_options(options)
  else
    Tennpipes::Cli::Adapter.start(args.last ? options.merge(:config => args.last).freeze : options)
  end
end

#stopObject



37
38
39
40
41
# File 'lib/tennpipes-base/cli/launcher.rb', line 37

def stop
  prepare :stop
  require File.expand_path("../adapter", __FILE__)
  Tennpipes::Cli::Adapter.stop(options)
end