File: vcr.rake

package info (click to toggle)
ruby-vcr 6.0.0%2Breally5.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,320 kB
  • sloc: ruby: 8,456; sh: 177; makefile: 7
file content (9 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
namespace :vcr do
  desc "Migrate cassettes from the VCR 1.x format to the VCR 2.x format."
  task :migrate_cassettes do
    dir = ENV.fetch('DIR') { raise "You must pass the cassette library directory as DIR=<directory>" }
    require 'vcr/cassette/migrator'
    VCR::Cassette::Migrator.new(dir).migrate!
  end
end