class GrosCalin::CLI

Public Instance Methods

config_ru() click to toggle source
# File lib/gros_calin/cli.rb, line 34
def config_ru
  File.expand_path(File.join(File.dirname(__FILE__), '../../config.ru'))
end
start() click to toggle source
# File lib/gros_calin/cli.rb, line 15
def start
  command = "thin -R #{config_ru} start -p #{options[:port]}"
  if options[:config]
    command.prepend "export GROS_CALIN_CONFIG=#{options[:config]}; "
  end
  command << ' -d' if options[:daemon]
  system command
end
stop() click to toggle source
# File lib/gros_calin/cli.rb, line 26
def stop
  system "thin stop"
end