Sha256: ff93455a179e579de95aeda760e61a34a5a3677d12db01cfe64cfacabe384c9a

Contents?: true

Size: 1.1 KB

Versions: 22

Compression:

Stored size: 1.1 KB

Contents

namespace :site_logic do

  desc "Install SiteLogic into your application."
  task :install do
    dir = Gem.searcher.find('site_logic').full_gem_path
    system "rsync -ruv #{dir}/config/initializers/site_logic.rb config/initializers/"
    system "rsync -ruv #{dir}/public/javascripts/link_obfuscator.js public/javascripts/"
    puts
    puts "========================================================================================="
    puts "SiteLogic installation complete."
    puts "========================================================================================="
    puts
    puts "Run rake site_logic:views if you want to customize views for your application."
    puts
    puts "========================================================================================="
    puts
  end

  desc "Copy views from SiteLogic into the host application"
  task :views do
    dir = Gem.searcher.find('site_logic').full_gem_path
    system "rsync -ruv #{dir}/app/views/admin app/views/"
    system "rsync -ruv #{dir}/app/views/admin app/sites/"
    system "rsync -ruv #{dir}/app/views/admin app/pages/"
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
site_logic-1.9.13 tasks/site_logic.rake
site_logic-1.9.12 tasks/site_logic.rake
site_logic-1.9.11 tasks/site_logic.rake
site_logic-1.9.10 tasks/site_logic.rake
site_logic-1.9.9 tasks/site_logic.rake
site_logic-1.9.8 tasks/site_logic.rake
site_logic-1.9.7 tasks/site_logic.rake
site_logic-1.9.6 tasks/site_logic.rake
site_logic-1.9.5 tasks/site_logic.rake
site_logic-1.9.4 tasks/site_logic.rake
site_logic-1.9.3 tasks/site_logic.rake
site_logic-1.9.2 tasks/site_logic.rake
site_logic-1.9.1 tasks/site_logic.rake
site_logic-1.9.0 tasks/site_logic.rake
site_logic-1.8.0 tasks/site_logic.rake
site_logic-1.7.1 tasks/site_logic.rake
site_logic-1.7.0 tasks/site_logic.rake
site_logic-1.6.10 tasks/site_logic.rake
site_logic-1.6.9 tasks/site_logic.rake
site_logic-1.6.8 tasks/site_logic.rake