/usr/lib/ruby/vendor_ruby/aruba/platforms/unix_command_string.rb is in ruby-aruba 0.14.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 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 inspect to_s
end
end
end
end
|