Sha256: b9b53f8abb3367b313d00b6bedb1a4b13db078549abd64ace6fb4fe1648f983c
Contents?: true
Size: 594 Bytes
Versions: 7
Compression:
Stored size: 594 Bytes
Contents
require 'delegate' # Aruba module Aruba # Platforms module Platforms # This is a command which should be run # # This adds `cmd.exec` in front of commmand # # @private class WindowsCommandString < SimpleDelegator def initialize(cmd) __setobj__ format('%s /c "%s"', Aruba.platform.which('cmd.exe'), cmd) end # Convert to array def to_a Shellwords.split __getobj__ end if RUBY_VERSION < '1.9' def to_s __getobj__.to_s end alias_method :inspect, :to_s end end end end
Version data entries
7 entries across 7 versions & 1 rubygems