Sha256: 568eaff689f16f6472c33cec8535b4977ace724f591e7df6d7488e2b6357b3de

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 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/stylesheets/sass
    copy_files("../../public/stylesheets", "/public", directory)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flutie-1.2.2 lib/tasks/flutie.rake