lib/tape/installer.rb in taperole-1.3.0 vs lib/tape/installer.rb in taperole-1.3.1

- old
+ new

@@ -1,5 +1,6 @@ +require 'pathname' module TapeBoxer class Installer < ExecutionModule TapeBoxer.register_module :installer, self action :install, @@ -100,11 +101,11 @@ FileUtils.rm_r "#{local_dir}/#{file}" puts file end def mkdir(name) - print "#{Pathname.new(name).basename}: " + print "#{::Pathname.new(name).basename}: " begin FileUtils.mkdir name success rescue Errno::EEXIST exists @@ -113,10 +114,10 @@ raise e end end def copy_example(file, cp_file) - print "#{Pathname.new(cp_file).basename}: " + print "#{::Pathname.new(cp_file).basename}: " begin if File.exist?("#{cp_file}") exists else FileUtils.cp("#{tape_dir}/#{file}", "#{cp_file}")