Class: Thor

Inherits:
Object
  • Object
show all
Defined in:
lib/thor/vcr.rb

Class Method Summary collapse

Class Method Details

.dispatch_with_vcr(meth, given_args, given_opts, config) ⇒ Object Also known as: dispatch

:nodoc:



20
21
22
23
24
25
# File 'lib/thor/vcr.rb', line 20

def dispatch_with_vcr(meth, given_args, given_opts, config) #:nodoc:
  cassette = given_args.join('_')
  VCR.use_cassette(cassette, :serialize_with => :json) do
    dispatch_without_vcr(meth, given_args, given_opts, config) #:nodoc:
  end
end