Sha256: b49c8a46697f88e206ae0780b0e6e50f5f77fea81397a705ce56c25f1dc224e9
Contents?: true
Size: 648 Bytes
Versions: 1
Compression:
Stored size: 648 Bytes
Contents
namespace :rflowplayer do PLUGIN_ROOT = File.dirname(__FILE__) + '/../' desc 'Install Flow Player files' task :install do FileUtils.cp_r Dir[PLUGIN_ROOT + '/assets/swf'], RAILS_ROOT + '/public' FileUtils.cp Dir[PLUGIN_ROOT + '/assets/javascripts/*.js'], RAILS_ROOT + '/public/javascripts' end desc 'Unistall Flow Player files' task :uninstall do FileUtils.rm %W(flashembed.min.js flow.embed.js flow.playlist.js jquery.mousewheel.js jquery.pack.js jquery.scrollable.min.js).map { |f| RAILS_ROOT + '/public/javascripts/' + f } FileUtils.rmtree %{swf}.map {|f| RAILS_ROOT + '/public/' + f} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rflowplayer-0.1.0 | tasks/rflowplayer_tasks.rake |