Convert to Pathname if not Pathname as we need it to be
This commit is contained in:
parent
3a58b8141b
commit
bb6816dc4a
@ -270,6 +270,8 @@ class Pathname
|
||||
# perhaps confusingly, this Pathname object becomes the symlink pointing to
|
||||
# the src paramter.
|
||||
def make_relative_symlink src
|
||||
src = Pathname.new(src) unless src.kind_of? Pathname
|
||||
|
||||
self.dirname.mkpath
|
||||
Dir.chdir self.dirname do
|
||||
# TODO use Ruby function so we get exceptions
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user