module Gakubuchi::FileUtils

Public Class Methods

copy_p(src, dest) click to toggle source
# File lib/gakubuchi/fileutils.rb, line 10
def copy_p(src, dest)
  mkdir_p(::File.dirname(dest))
  copy(src, dest)
  logging("Copied #{src} to #{dest}")
end
remove(list) click to toggle source
Calls superclass method
# File lib/gakubuchi/fileutils.rb, line 16
def remove(list)
  super(list)
  logging("Removed #{Array(list).join(' ')}")
end

Private Class Methods

logging(message) click to toggle source
# File lib/gakubuchi/fileutils.rb, line 23
def logging(message)
  ::Logger.new(::STDOUT).info(message)
end