class Cocaine::CommandLine::FakeRunner
Attributes
commands[R]
Public Class Methods
new()
click to toggle source
# File lib/cocaine/command_line/runners/fake_runner.rb, line 15 def initialize @commands = [] end
supported?()
click to toggle source
# File lib/cocaine/command_line/runners/fake_runner.rb, line 5 def self.supported? false end
Public Instance Methods
call(command, env = {}, options = {})
click to toggle source
# File lib/cocaine/command_line/runners/fake_runner.rb, line 19 def call(command, env = {}, options = {}) commands << [command, env] "" end
ran?(predicate_command)
click to toggle source
# File lib/cocaine/command_line/runners/fake_runner.rb, line 24 def ran?(predicate_command) @commands.any?{|(command, env)| command =~ Regexp.new(predicate_command) } end
supported?()
click to toggle source
# File lib/cocaine/command_line/runners/fake_runner.rb, line 9 def supported? self.class.supported? end