Sha256: 6e0a6b9c1121bd1c770036dc5e5e45d8d7fa6231061c1ed811c57d8fc1de09da
Contents?: true
Size: 395 Bytes
Versions: 2
Compression:
Stored size: 395 Bytes
Contents
# coding: UTF-8 module Cocaine class CommandLine class FakeRunner attr_reader :commands def initialize @commands = [] end def call(command, env = {}) commands << [command, env] "" end def ran?(predicate_command) @commands.any?{|(command, env)| command =~ Regexp.new(predicate_command) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cocaine-0.5.1 | lib/cocaine/command_line/runners/fake_runner.rb |
cocaine-0.5.0 | lib/cocaine/command_line/runners/fake_runner.rb |