Sha256: 52c7b5cf7e216d3c25b1725016edae0a4878efe0622d8745f4547924bbb9d3fc
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
require 'shellwords' require 'rbconfig' def shellescape(str) return str unless str if FFI::Platform::OS == 'windows' '"' + str.gsub('"', '""') + '"' else str.shellescape end end def shelljoin(args) if FFI::Platform::OS == 'windows' args.reduce { |cmd, arg| cmd + ' ' + shellescape(arg) } else args.shelljoin end end def shellsplit(str) return str unless str str.shellsplit end
Version data entries
4 entries across 4 versions & 3 rubygems