lib/puppet/modulebuilder/builder.rb in puppet-modulebuilder-0.2.0 vs lib/puppet/modulebuilder/builder.rb in puppet-modulebuilder-0.2.1
- old
+ new
@@ -33,11 +33,11 @@
# @return [String]
def source
return @source if @source_validated
validate_source!
- @source
+ @source = File.realpath(@source)
end
# Build a module package from a module directory.
#
# @return [String] The path to the built package file.
@@ -398,15 +398,15 @@
def file_symlink?(*args)
File.symlink?(*args)
end
- def fileutils_cp(*args)
- FileUtils.cp(*args)
+ def fileutils_cp(src, dest, **options)
+ FileUtils.cp(src, dest, **options)
end
- def fileutils_mkdir_p(*args)
- FileUtils.mkdir_p(*args)
+ def fileutils_mkdir_p(dir, **options)
+ FileUtils.mkdir_p(dir, **options)
end
def file_stat(*args)
File.stat(*args)
end