Class: FakeServer::CLI
- Inherits:
-
Thor
- Object
- Thor
- FakeServer::CLI
- Defined in:
- lib/fake_server/cli.rb
Instance Method Summary collapse
Instance Method Details
#start(remote_host) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fake_server/cli.rb', line 15 def start(remote_host) VCR.configure do |c| c.cassette_library_dir = [:cassette_dir] c.hook_into :webmock end Rack::Handler::Puma.run(Server.new(remote_host, [:log_file]), { Port: [:port], Threads: "#{[:min_threads]}:#{[:max_threads]}" }) end |