Sha256: 449e1ade94a8be800dc67c462becbfc05d816fb99c28d13ad791636f2af789a0

Contents?: true

Size: 884 Bytes

Versions: 7

Compression:

Stored size: 884 Bytes

Contents

require 'rake'
require 'set'
require 'albacore/cmd_config'
require 'albacore/cross_platform_cmd'

module Albacore
  module TestRunner
    class Cmd
      include CrossPlatformCmd
      def initialize work_dir, executable, parameters, file
        @work_dir, @executable = work_dir, executable
        @parameters = parameters.to_a.unshift(file)
        mono_command
      end
      def execute
        system @executable, @parameters, :work_dir => @work_dir
      end
    end
    class Config
      include CmdConfig
      attr_writer :files
      def files
        if @files.respond_to? :each
          @files
        else
          [@files]
        end
      end
    end
    class Task
      def initialize command_line
        @command_line = command_line
      end
      def execute
        @command_line.execute
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
albacore-2.0.0.rc.7 lib/albacore/task_types/test_runner.rb
albacore-2.0.0.rc.6 lib/albacore/task_types/test_runner.rb
albacore-2.0.0.rc.5 lib/albacore/task_types/test_runner.rb
albacore-2.0.0.rc.4 lib/albacore/task_types/test_runner.rb
albacore-2.0.0.rc.3 lib/albacore/task_types/test_runner.rb
albacore-2.0.0.rc.2 lib/albacore/task_types/test_runner.rb
albacore-2.0.0.rc.1 lib/albacore/task_types/test_runner.rb