Sha256: 5e96a8e291192f35fa980c8af491a544a4b7dedc601be7d00b95671bf799cefc
Contents?: true
Size: 551 Bytes
Versions: 1
Compression:
Stored size: 551 Bytes
Contents
module Typescript::Monkey require 'open3' # # The CLI class. # # A class that implements a basic interface to command line programs. # class CLI # Run a command with arguments # # @return [String, String, Process::Status] stdout, stderr, and the status # of the command results. # # @see Process::Status # def self.run_command(command, args=[]) args_string = args.join(" ") _stdout, _stderr, _status = Open3.capture3("\"#{command}\" #{args_string}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typescript-monkey-0.9.0 | lib/typescript/monkey/cli.rb |