namespace :multi_bit_shift_helper do PLUGIN_ROOT = File.dirname(__FILE__) + '/../' desc 'Installs required flash to public directory.' task :install do FileUtils.cp_r Dir[PLUGIN_ROOT + '/assets/flash'], RAILS_ROOT + '/public' end desc 'Removes the flash.' task :remove do FileUtils.rmtree %{flash}.collect { |f| RAILS_ROOT + "/public/" + f } #trees to rm end end