class Minke::Helpers::Copy

Public Instance Methods

copy_assets(from, to) click to toggle source

copy assets from one location to another

# File lib/minke/helpers/copy.rb, line 6
def copy_assets from, to
  directory = to
  if File.directory?(to)
    directory = File.dirname(to)
  end

  Dir.mkdir directory unless Dir.exist? to
  FileUtils.cp_r from, to
end