Class: FakeServer::CLI

Inherits:
Thor
  • Object
show all
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 = options[:cassette_dir]
    c.hook_into :webmock
  end

  Rack::Handler::Puma.run(Server.new(remote_host, options[:log_file]), {
    Port: options[:port],
    Threads: "#{options[:min_threads]}:#{options[:max_threads]}"
  })
end