Class: VHS::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/vhs/loader.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.loadObject



4
5
6
# File 'lib/vhs/loader.rb', line 4

def self.load
  new.load
end

Instance Method Details

#cassettes_pathObject

TODO move it to config class?



16
17
18
# File 'lib/vhs/loader.rb', line 16

def cassettes_path
  config['vcr']['cassette_library_dir']
end

#loadObject

Public: configures VHS from .vhs.yml config file and loads it.



9
10
11
12
13
# File 'lib/vhs/loader.rb', line 9

def load
  configure_vcr
  configure_vhs
  VHS.load
end