search for: target_win

Displaying 1 result from an estimated 1 matches for "target_win".

Did you mean: target_min
2013 Oct 28
1
Using puppetlabs_spec_helper on Windows 7
...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:NilClass: Failure/Error: Unable to find matchin...