Sha256: 2c7da5e39b8b0462dd4a906abe343951eaa1a01aa88c2c250d87a16de2322359
Contents?: true
Size: 636 Bytes
Versions: 5
Compression:
Stored size: 636 Bytes
Contents
namespace :jqgrid_rails do desc' Install required assets' task :install do print 'Checking for asset directory... ' FileUtils.mkdir_p(File.join(Rails.root, 'public', 'jqgrid_rails')) puts 'OK' print 'Removing any legacy assets... ' FileUtils.rm_rf(File.join(Rails.root, 'public', 'jqgrid_rails', '*')) puts 'OK' print 'Installing assets... ' FileUtils.cp_r(File.join(File.dirname(__FILE__), '..', '..', 'files', '.'), File.join(Rails.root, 'public', 'jqgrid_rails')) puts 'Done' end desc 'Upgrade required assets' task :upgrade do Rake::Task['jqgrid_rails:install'].invoke end end
Version data entries
5 entries across 5 versions & 1 rubygems