class Protobox::Util::System

Constants

PWD

Public Class Methods

command_to_string(cmd) click to toggle source
# File lib/protobox/util.rb, line 88
def command_to_string(cmd)
  full_cmd = to_exec(cmd)
  full_cmd.respond_to?(:shelljoin) ? full_cmd.shelljoin : full_cmd.join(' ')
end
current_dir() click to toggle source
# File lib/protobox/util.rb, line 79
def current_dir
  PWD
end
to_exec(args) click to toggle source
# File lib/protobox/util.rb, line 83
def to_exec(args)
  args = Shellwords.shellwords(args) if args.respond_to? :to_str
  Array(executable) + Array(args)
end