Sha256: 531158e2082fa2d0f5247610fd5e4d6845146c92f1a486bf0f4fbb1ca6e9bba3

Contents?: true

Size: 1.1 KB

Versions: 40

Compression:

Stored size: 1.1 KB

Contents

namespace :blog_logic do

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

  desc "Copy views from BlogLogic into the host application"
  task :views do
    dir = Gem.searcher.find('blog_logic').full_gem_path
    system "rsync -ruv #{dir}/app/views/blogs app/views/"
    system "rsync -ruv #{dir}/app/views/posts app/views/"
  end

end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
blog_logic-1.4.15 tasks/blog_logic.rake
blog_logic-1.4.14 tasks/blog_logic.rake
blog_logic-1.4.13 tasks/blog_logic.rake
blog_logic-1.4.12 tasks/blog_logic.rake
blog_logic-1.4.11 tasks/blog_logic.rake
blog_logic-1.4.10 tasks/blog_logic.rake
blog_logic-1.4.9 tasks/blog_logic.rake
blog_logic-1.4.8 tasks/blog_logic.rake
blog_logic-1.4.7 tasks/blog_logic.rake
blog_logic-1.4.6 tasks/blog_logic.rake
blog_logic-1.4.5 tasks/blog_logic.rake
blog_logic-1.4.4 tasks/blog_logic.rake
blog_logic-1.4.3 tasks/blog_logic.rake
blog_logic-1.4.2 tasks/blog_logic.rake
blog_logic-1.4.1 tasks/blog_logic.rake
blog_logic-1.4.0 tasks/blog_logic.rake
blog_logic-1.3.1 tasks/blog_logic.rake
blog_logic-1.3.0 tasks/blog_logic.rake
blog_logic-1.2.4 tasks/blog_logic.rake
blog_logic-1.2.3 tasks/blog_logic.rake