Sha256: e86467eea6ca0c79656395a7b0bf224467671d90846f36b02b25443b748fc6b5

Contents?: true

Size: 1.07 KB

Versions: 17

Compression:

Stored size: 1.07 KB

Contents

namespace :editorial_logic do

  desc "Install EditorialLogic into your application."
  task :install do

    dir = Gem.searcher.find('editorial_logic').full_gem_path

    system "rsync -ruv #{dir}/config/initializers/editorial_logic.rb config/initializers/"

    puts
    puts "========================================================================================="
    puts "EditorialLogic installation complete."
    puts "========================================================================================="
    puts
    puts "Run rake editorial_logic:views if you want to customize views for your application."
    puts
    puts "========================================================================================="
    puts

  end

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

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
editorial_logic-1.4.5 tasks/editorial_logic.rake
editorial_logic-1.4.4 tasks/editorial_logic.rake
editorial_logic-1.4.3 tasks/editorial_logic.rake
editorial_logic-1.4.2 tasks/editorial_logic.rake
editorial_logic-1.4.1 tasks/editorial_logic.rake
editorial_logic-1.4.0 tasks/editorial_logic.rake
editorial_logic-1.3.3 tasks/editorial_logic.rake
editorial_logic-1.3.2 tasks/editorial_logic.rake
editorial_logic-1.3.1 tasks/editorial_logic.rake
editorial_logic-1.3.0 tasks/editorial_logic.rake
editorial_logic-1.1.6 tasks/editorial_logic.rake
editorial_logic-1.1.5 tasks/editorial_logic.rake
editorial_logic-1.1.4 tasks/editorial_logic.rake
editorial_logic-1.1.3 tasks/editorial_logic.rake
editorial_logic-1.1.2 tasks/editorial_logic.rake
editorial_logic-1.1.1 tasks/editorial_logic.rake
editorial_logic-1.1.0 tasks/editorial_logic.rake