Method: Hussh.load_recording

Defined in:
lib/hussh.rb

.load_recording(name) ⇒ Object



78
79
80
81
82
83
84
85
86
# File 'lib/hussh.rb', line 78

def self.load_recording(name)
  @@recording_path = self.path_for_recording(name)
  @@recording_changed = false
  if File.exist?(@@recording_path)
    @@recorded_responses = YAML.load_file(@@recording_path)
  else
    self.clear_recorded_responses
  end
end