Sha256: 24ce5b580048e0de3edce826e282427c4c18985802f26ddbfe3edaac33030782
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
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 # don't copy json.js file, it's seems tjat everything works without that file # FileUtils.cp "#{PLUGIN_ROOT}/requirements/json/*.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" FileUtils.rm "#{RAILS_ROOT}/public/open-flash-chart.swf" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webroar-0.2.2 | src/admin_panel/vendor/plugins/open_flash_chart_2/tasks/open_flash_chart_tasks.rake |