Sha256: 2af1ef1b5a11e5bccf20c5f8dede2f142a24f27507664f1c9532725cd45d721e
Contents?: true
Size: 544 Bytes
Versions: 33
Compression:
Stored size: 544 Bytes
Contents
module Quality # Spawn a ruby process class RubySpawn def initialize(cmd, args) @cmd = cmd @args = args end def invocation if @args.size > 0 "#{cmd_with_ruby_hack_prefix} #{@args}" else "#{cmd_with_ruby_hack_prefix}" end end def cmd_with_ruby_hack_prefix if defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'jruby') "jruby -S #{@cmd}" elsif RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ "#{@cmd}.bat" else @cmd end end end end
Version data entries
33 entries across 33 versions & 1 rubygems