class Rspec::Bash::CallLogManager

Public Class Methods

new() click to toggle source
# File lib/rspec/bash/command/call_log_manager.rb, line 4
def initialize
  @call_logs = Hash.new { |hash, key| hash[key] = CallLog.new }
end

Public Instance Methods

add_log(command, stdin, arguments) click to toggle source
# File lib/rspec/bash/command/call_log_manager.rb, line 8
def add_log(command, stdin, arguments)
  @call_logs[command]
    .add_log(stdin, arguments)
end
call_count(command, arguments) click to toggle source
# File lib/rspec/bash/command/call_log_manager.rb, line 18
def call_count(command, arguments)
  @call_logs[command]
    .call_count(arguments)
end
call_log(command) click to toggle source
# File lib/rspec/bash/command/call_log_manager.rb, line 33
def call_log(command)
  @call_logs[command]
end
called_with_args?(command, arguments) click to toggle source
# File lib/rspec/bash/command/call_log_manager.rb, line 23
def called_with_args?(command, arguments)
  @call_logs[command]
    .called_with_args?(arguments)
end
called_with_no_args?(command) click to toggle source
# File lib/rspec/bash/command/call_log_manager.rb, line 28
def called_with_no_args?(command)
  @call_logs[command]
    .called_with_no_args?
end
stdin_for_args(command, arguments) click to toggle source
# File lib/rspec/bash/command/call_log_manager.rb, line 13
def stdin_for_args(command, arguments)
  @call_logs[command]
    .stdin_for_args(arguments)
end