Sha256: 9bcc9aa03683edc0c643d6a08b8630dd49a71d5087c514e1e69f3f38fd99d80e

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 Bytes

Contents

require 'fileutils'

namespace :app_cache do
  namespace :init do
    desc "Generate app_cache init file from example"
    task :create do
      source = File.join(Gem.loaded_specs["app_cache"].full_gem_path, "app_cache.rb")
      target = File.join(Rails.root, "config", "initializers", "app_cache.rb")
      FileUtils.cp_r source, target
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
app_cache-0.1.2 lib/rake/app_cache.rake
app_cache-0.1.1 lib/rake/app_cache.rake
app_cache-0.1.0 lib/rake/app_cache.rake