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