class LitmusPaper::CLI::Server
Public Instance Methods
opt_parser()
click to toggle source
# File lib/litmus_paper/cli/server.rb, line 33 def opt_parser Options.new end
start()
click to toggle source
# File lib/litmus_paper/cli/server.rb, line 37 def start options = opt_parser.parse!(ARGV) unicorn_args = ['-c', options[:unicorn_config], '-l', "#{options[:Host]}:#{options[:Port]}"] unicorn_args << '-D' if options[:daemonize] Kernel.exec('unicorn', *unicorn_args) end