Sha256: ff09e17495e2b7b502d530226cf38f965f0719668393705dadd66ecb701b4a6b
Contents?: true
Size: 482 Bytes
Versions: 7
Compression:
Stored size: 482 Bytes
Contents
require 'delegate' require 'shellwords' # Aruba module Aruba # Platforms module Platforms # This is a command which should be run class UnixCommandString < SimpleDelegator def initialize(cmd) __setobj__ 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