class CopyCat

Public Class Methods

new(args) click to toggle source
# File lib/copy-cat.rb, line 46
def initialize args
  CopyCatServer.set :base_url, args[:base_url]
  CopyCatServer.set :custom_http_headers, args[:custom_http_headers] || []
  CopyCatServer.set :cassette_library_dir, args[:cassette_library_dir] || "fixtures/vcr_cassettes"
  # CopyCatServer.set :port, args[:port] || "8848"  # TODO: Not working
end

Public Instance Methods

start_server() click to toggle source
# File lib/copy-cat.rb, line 53
def start_server
  CopyCatServer.run!
end