Sha256: 138d2cd3448688c1f90d3fbcf641339c3725a791f7e951d8f22ef77849e5f185

Contents?: true

Size: 573 Bytes

Versions: 14

Compression:

Stored size: 573 Bytes

Contents

class CommandLineTask
 
  def initialize(runner, parser)
    @runner = runner
    @parser = parser
  end
  
  def run(files)
    all_files = files[:all]
    modified_files = files[:filtered]
    
    return nil if (!@runner.is_configured? all_files)
    return nil if (!@runner.should_run? modified_files)
 
    detail = @runner.execute
    
    state, summary, first = @parser.parse_result(detail)
 
    return {
        :state => state,
        :title => @runner.name,
        :summary => summary,
        :first => first,
        :detail => detail
      }
  end
    
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
karl-loris-0.0.10 lib/tasks/command_line_task.rb
karl-loris-0.0.11 lib/tasks/command_line_task.rb
loris-0.2.0 lib/tasks/command_line_task.rb
loris-0.1.7 lib/tasks/command_line_task.rb
loris-0.1.5 lib/tasks/command_line_task.rb
loris-0.1.4 lib/tasks/command_line_task.rb
loris-0.1.3 lib/tasks/command_line_task.rb
loris-0.1.2 lib/tasks/command_line_task.rb
loris-0.1.1 lib/tasks/command_line_task.rb
loris-0.1.0 lib/tasks/command_line_task.rb
loris-0.0.16 lib/tasks/command_line_task.rb
loris-0.0.15 lib/tasks/command_line_task.rb
loris-0.0.14 lib/tasks/command_line_task.rb
loris-0.0.12 lib/tasks/command_line_task.rb