Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-1576) Use Puppet FileSystem abstraction for symlinks to support Windows #84

Merged
merged 1 commit into from
Dec 12, 2014

Conversation

Iristyle
Copy link
Contributor

  • FileUtils::ln_sf is equivalent to FileUtils::ln_s and
    FileUtils::symlink, which are unfortunately broken in Windows through
    at least Ruby 2.0. In Puppet we have a FileSystem class that
    provides a similar abstraction, but fixes all of the methods that
    are broken on Ruby for Windows.

@Iristyle Iristyle changed the title WIP: Use Puppet FileSystem abstraction for symlinks WIP: Use Puppet FileSystem abstraction for symlinks to support Windows Dec 12, 2014
 - FileUtils::ln_sf is equivalent to FileUtils::ln_s and
   FileUtils::symlink, which are unfortunately broken in Windows through
   at least Ruby 2.0.  In Puppet we have a FileSystem class that
   provides a similar abstraction, but fixes all of the methods that
   are broken on Ruby for Windows.
@Iristyle Iristyle changed the title WIP: Use Puppet FileSystem abstraction for symlinks to support Windows WIP: (MODULES-1576) Use Puppet FileSystem abstraction for symlinks to support Windows Dec 12, 2014
@@ -88,6 +88,8 @@ def revision(scm, target, ref)

desc "Create the fixtures directory"
task :spec_prep do
require 'puppet/file_system'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other requires from within puppet elsewhere in this file, so presumably it's OK to do so here as well.

@Iristyle Iristyle changed the title WIP: (MODULES-1576) Use Puppet FileSystem abstraction for symlinks to support Windows (MODULES-1576) Use Puppet FileSystem abstraction for symlinks to support Windows Dec 12, 2014
@Iristyle Iristyle mentioned this pull request Dec 12, 2014
@cyberious
Copy link
Contributor

👍

cyberious added a commit that referenced this pull request Dec 12, 2014
(MODULES-1576) Use Puppet FileSystem abstraction for symlinks to support Windows
@cyberious cyberious merged commit 1163183 into puppetlabs:master Dec 12, 2014
@Iristyle Iristyle deleted the fix-spec_prep-windows branch February 13, 2015 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants