Module | Rake::Win32 |
In: |
lib/rake/win32.rb
|
Win 32 interface methods for Rake. Windows specific functionality will be placed here to collect that knowledge in one spot.
Normalize a win32 path so that the slashes are all forward slashes.
# File lib/rake/win32.rb, line 48 48: def normalize(path) 49: path.gsub(/\\/, '/') 50: end
Run a command line on windows.
# File lib/rake/win32.rb, line 19 19: def rake_system(*cmd) 20: if cmd.size == 1 21: system("call #{cmd}") 22: else 23: system(*cmd) 24: end 25: end