Sha256: 307e1659187b1ad177b295f881c03fd30e28b5089288b9ac4542042f3caa31e3
Contents?: true
Size: 618 Bytes
Versions: 20
Compression:
Stored size: 618 Bytes
Contents
require 'fileutils' def copy_files(source_path, destination_path, directory) source, destination = File.join(directory, source_path), File.join(Rails.root, destination_path) FileUtils.mkdir_p(destination, :verbose => true) unless File.exist?(destination) FileUtils.cp_r(source, destination, :verbose => true) end directory = File.dirname(__FILE__) namespace :flutie do desc 'install flutie stylesheets into public/ directory' task :install => :environment do # Copy the flutie stylesheets into rails_root/public/flutie copy_files("../../public/stylesheets", "/public/flutie", directory) end end
Version data entries
20 entries across 20 versions & 5 rubygems