Class: ResponseMate::Commands::Record

Inherits:
Base
  • Object
show all
Defined in:
lib/response_mate/commands/record.rb

Overview

Handles the invocation of the record command

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from ResponseMate::Commands::Base

Instance Method Details

#runObject

Run the command based on args, options provided


4
5
6
7
8
9
10
11
12
13
# File 'lib/response_mate/commands/record.rb', line 4

def run
  environment = ResponseMate::Environment.new(options[:environment])
  manifest = ResponseMate::Manifest.new(options[:requests_manifest], environment)

  options[:manifest] = manifest

  recorder = ResponseMate::Recorder.new(options)

  recorder.record(options[:keys])
end