class Terrapin::CommandLine::FakeRunner
Attributes
commands[R]
Public Class Methods
new()
click to toggle source
# File lib/terrapin/command_line/runners/fake_runner.rb, line 16 def initialize @commands = [] end
supported?()
click to toggle source
# File lib/terrapin/command_line/runners/fake_runner.rb, line 6 def self.supported? false end
Public Instance Methods
call(command, env = {}, options = {})
click to toggle source
# File lib/terrapin/command_line/runners/fake_runner.rb, line 20 def call(command, env = {}, options = {}) commands << [command, env] Output.new("") end
ran?(predicate_command)
click to toggle source
# File lib/terrapin/command_line/runners/fake_runner.rb, line 25 def ran?(predicate_command) @commands.any?{|(command, _)| command =~ Regexp.new(predicate_command) } end
supported?()
click to toggle source
# File lib/terrapin/command_line/runners/fake_runner.rb, line 10 def supported? self.class.supported? end