enkessler/cuke_cataloger

View on GitHub
cuke_cataloger_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'childprocess'


module CukeCataloger

  # Various helper methods for the project
  module CukeCatalogerHelper

    module_function


    def run_command(parts)
      parts.unshift('cmd.exe', '/c') if ChildProcess.windows?
      process = ChildProcess.build(*parts)

      process.io.inherit!
      process.start
      process.wait

      process
    end

  end
end