Sha256: de37be2c0a57c24e870ae6d23a92e6156567157307df354e179dd2b2f532e911
Contents?: true
Size: 597 Bytes
Versions: 3
Compression:
Stored size: 597 Bytes
Contents
module RakeCommandFilter # command that runs a rake task class RakeCommandDefinition < CommandDefinition attr_accessor :test_command # @param name will invoke rake <name> to run # the command def initialize(name, test_command) super(name) @test_command = test_command end # Executes a rake task in a subprocess, and # captures and parses the output using the # filters associated with this command def execute command = RakeCommandFilter.testing? ? test_command : "rake #{@name}" return execute_system(command) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rake_command_filter-0.1.2 | lib/rake_command_definition.rb |
rake_command_filter-0.1.1 | lib/rake_command_definition.rb |
rake_command_filter-0.1.0 | lib/rake_command_definition.rb |