Sha256: 48af75e9f660730ece822c4b7b80aa27c9462138f5f58b8bfa2ea8ecd89a52b7
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 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/mabtie", directory) # Copy the images copy_files("../../public/images", "/public/images") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mabtie-0.0.3 | lib/tasks/flutie.rake |
mabtie-0.0.3.alpha2 | lib/tasks/flutie.rake |
mabtie-0.0.3.alpha1 | lib/tasks/flutie.rake |
mabtie-0.0.2 | lib/tasks/flutie.rake |