Method: Rake::AltSystem.system

Defined in:
lib/rake/alt_system.rb

.system(cmd, *args) ⇒ Object



85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/rake/alt_system.rb', line 85

def system(cmd, *args)
  repaired = (
    if args.empty?
      [repair_command(cmd)]
    elsif runnable = find_runnable(cmd)
      [File.expand_path(runnable), *args]
    else
      # non-existent file
      [cmd, *args]
    end
  )
  kernel_system(*repaired)
end