module Commands
Public Instance Methods
execute_commands()
click to toggle source
# File lib/database_fork/commands.rb, line 6 def execute_commands @commands.each do |command, message| log_info message log_debug command `#{command}` end end
record_command(command, message)
click to toggle source
# File lib/database_fork/commands.rb, line 2 def record_command(command, message) @commands << [command, message] end
reset_commands!()
click to toggle source
# File lib/database_fork/commands.rb, line 14 def reset_commands! @commands = [] end