Sha256: 24e35dc792a35a88433d4f2999536d56f8f678359849228ce7589fc92bcfbda6

Contents?: true

Size: 333 Bytes

Versions: 6

Compression:

Stored size: 333 Bytes

Contents

module Koine
  class TestRunner
    class CommandExecuter
      def execute(command)
        system(command.to_s)
        $?.exitstatus
      end

      def fail(reason)
        puts reason
        exit(1)
      end

      def execute_and_exit(command)
        puts command
        exit(execute(command))
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
koine-test_runner-0.2.4 lib/koine/test_runner/command_executer.rb
koine-test_runner-0.2.3 lib/koine/test_runner/command_executer.rb
koine-test_runner-0.2.2 lib/koine/test_runner/command_executer.rb
koine-test_runner-0.2.1 lib/koine/test_runner/command_executer.rb
koine-test_runner-0.2.0 lib/koine/test_runner/command_executer.rb
koine-test_runner-0.1.1 lib/koine/test_runner/command_executer.rb