Sha256: 1f0e235e4b081115203e5837e763bccd6233acf05fd9a02c03a54fd60d83e429
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 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 inspect to_s end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aruba-0.14.2 | lib/aruba/platforms/windows_command_string.rb |
aruba-0.14.1 | lib/aruba/platforms/windows_command_string.rb |
aruba-0.14.0 | lib/aruba/platforms/windows_command_string.rb |