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

Version Path
mabtie-0.0.1 lib/tasks/flutie.rake
flutie-1.1.8 lib/tasks/flutie.rake
flutie-1.1.7 lib/tasks/flutie.rake
flutie-1.1.6 lib/tasks/flutie.rake
flutie-1.1.5 lib/tasks/flutie.rake
flutie-1.1.4 lib/tasks/flutie.rake
flutie-1.1.3 lib/tasks/flutie.rake
flutie-1.1.2 lib/tasks/flutie.rake
flutie-1.1.1 lib/tasks/flutie.rake
flutie-1.1 lib/tasks/flutie.rake
pinkie-0.0.3 lib/tasks/pinkie.rake
pinkie-0.0.2 lib/tasks/pinkie.rake
pinkie-0.0.1 lib/tasks/pinkie.rake
svicss-1.0.5 lib/tasks/svicss.rake
svicss-1.0.4 lib/tasks/svicss.rake
flutie2-1.0.0 lib/tasks/flutie.rake
flutie-1.0.4 lib/tasks/flutie.rake
flutie-1.0.3 lib/tasks/flutie.rake
flutie-1.0.2 lib/tasks/flutie.rake
flutie-1.0.1 lib/tasks/flutie.rake