Class: LitmusPaper::CLI::Server
- Inherits:
-
Object
- Object
- LitmusPaper::CLI::Server
- Defined in:
- lib/litmus_paper/cli/server.rb
Defined Under Namespace
Classes: Options
Instance Method Summary collapse
Instance Method Details
#opt_parser ⇒ Object
33 34 35 |
# File 'lib/litmus_paper/cli/server.rb', line 33 def opt_parser Options.new end |
#start ⇒ Object
37 38 39 40 41 42 |
# File 'lib/litmus_paper/cli/server.rb', line 37 def start = opt_parser.parse!(ARGV) unicorn_args = ['-c', [:unicorn_config], '-l', "#{[:Host]}:#{[:Port]}"] unicorn_args << '-D' if [:daemonize] Kernel.exec('unicorn', *unicorn_args) end |