class Koine::TestRunner::Adapters::LastCommand
Public Class Methods
new(storage: Storage.new)
click to toggle source
# File lib/koine/test_runner/adapters/last_command.rb, line 5 def initialize(storage: Storage.new) @storage = storage end
Public Instance Methods
test_command(config)
click to toggle source
# File lib/koine/test_runner/adapters/last_command.rb, line 9 def test_command(config) command = next_adapter.test_command(config) unless command return @storage.retrieve end @storage.store(command) command end