Win 32 interface methods for Rake. Windows specific functionality will be placed here to collect that knowledge in one spot.
Methods
Classes and Modules
Class Rake::Win32::Win32HomeErrorPublic Class methods
Normalize a win32 path so that the slashes are all forward slashes.
[ show source ]
# File lib/rake/win32.rb, line 50
50: def normalize(path)
51: path.gsub(/\\/, '/')
52: end
Run a command line on windows.
[ show source ]
# File lib/rake/win32.rb, line 22
22: def rake_system(*cmd)
23: RepairedSystem.system(*cmd)
24: end
True if running on a windows system.
[ show source ]
# File lib/rake/win32.rb, line 17
17: def windows?
18: Config::CONFIG['host_os'] =~ /mswin|mingw/
19: end