Sha256: ea82ecf81719b100b0e1c263229c7b4a4dd4a853046172a9949e64a3496b5579
Contents?: true
Size: 1.23 KB
Versions: 8
Compression:
Stored size: 1.23 KB
Contents
namespace :open_flash_chart_2 do PLUGIN_ROOT = File.dirname(__FILE__) + '/../' desc 'Installs required swf in public/ and javascript files to the public/javascripts directory.' task :install do FileUtils.cp "#{PLUGIN_ROOT}requirements/open-flash-chart.swf", "#{RAILS_ROOT}/public/", :verbose => true FileUtils.cp "#{PLUGIN_ROOT}requirements/swfobject.js", "#{RAILS_ROOT}/public/javascripts/", :verbose => true end desc 'Removes the swf and javascripts for the plugin.' task :uninstall do FileUtils.rm "#{RAILS_ROOT}/public/javascripts/swfobject.js", :force => true, :verbose => true FileUtils.rm "#{RAILS_ROOT}/public/open-flash-chart.swf", :force => true, :verbose => true end desc 'Removes the old swf and javascripts for the plugin and copy new one to public direcory.' task :reinstall do FileUtils.rm "#{RAILS_ROOT}/public/javascripts/swfobject.js", :force => true, :verbose => true FileUtils.rm "#{RAILS_ROOT}/public/open-flash-chart.swf", :force => true, :verbose => true FileUtils.cp "#{PLUGIN_ROOT}requirements/open-flash-chart.swf", "#{RAILS_ROOT}/public/", :verbose => true FileUtils.cp "#{PLUGIN_ROOT}requirements/swfobject.js", "#{RAILS_ROOT}/public/javascripts/", :verbose => true end end
Version data entries
8 entries across 8 versions & 1 rubygems