module HTTPAutorec

Constants

VERSION

Public Instance Methods

start() click to toggle source
# File lib/http_autorec.rb, line 12
def start
  require 'vcr'

  VCR.configure do |c|
    c.cassette_library_dir = ENV['HTTP_AUTOREC_DIR'] || 'http_autorec_cache'
    c.hook_into :webmock
  end

  VCR.insert_cassette('autorec', :record => :new_episodes)
  VCR.turn_on!

  at_exit do
    VCR.eject_cassette
  end
end