Sha256: 9466ae01e1f8c0bec072ed1c28b210bd86b52d8b95cf9559f9a9d12dd7332401
Contents?: true
Size: 848 Bytes
Versions: 4
Compression:
Stored size: 848 Bytes
Contents
namespace :concen do desc "Create initial setup for Control Center." task :setup => [:environment, :copy_assets] do end desc "Copy assets for Control Center." task :copy_assets => :environment do origin = File.join(Concen::Engine.root, "public") destination = File.join(Rails.root, "public") if Dir.exist?("#{destination}/concen") || File.exist?("#{destination}/concen") FileUtils.rm_r "#{destination}/concen" end FileUtils.cp_r "#{origin}/concen/", "#{destination}/" end desc "Symlink assets." task :symlink_assets => :environment do origin = File.join(Concen::Engine.root, "public") destination = File.join(Rails.root, "public") FileUtils.rm_r "#{destination}/concen" if File.directory?("#{destination}/concen") FileUtils.ln_s "#{origin}/concen/", "#{destination}/" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
concen-0.1.3 | lib/concen/railties/setup.rake |
concen-0.1.2 | lib/concen/railties/setup.rake |
concen-0.1.1 | lib/concen/railties/setup.rake |
concen-0.1 | lib/concen/railties/setup.rake |