Displaying 1 result from an estimated 1 matches for "source_win".
Did you mean:
source_main
2013 Oct 28
1
Using puppetlabs_spec_helper on Windows 7
...n Windows 7 (even if the functionnality
are availabe). To manage that I added to rake_tasks.rb an ugly function:
def make_link(source,target)
ruby_platform = RbConfig::CONFIG[''host_os'']
if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ then
#Windows Stuff
source_win=source.tr("/","\\")
target_win=target.tr("/","\\")
`call mklink /D #{target_win} #{source_win}`
elsif RUBY_PLATFORM =~ /linux/ then
FileUtils::ln_s(source, target)
end
end
2. undefined method `fetch'' for nil:N...