Class: Resque::Integration::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Resque::Integration::Generators::InstallGenerator
- Defined in:
- lib/generators/resque/integration/install/install_generator.rb,
lib/generators/resque/integration/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_resque_progressbar ⇒ Object
12 13 14 15 16 17 |
# File 'lib/generators/resque/integration/install/install_generator.rb', line 12 def say_status("copying", "resque-integration (#{Resque::Integration::VERSION})", :green) copy_file "images/progressbar/white.gif", "public/images/progressbar/white.gif" copy_file "javascripts/jquery.progressbar.js", "public/javascripts/jquery.js" copy_file "stylesheets/jquery.progressbar.no_pipeline.css", "public/stylesheets/jquery.progressbar.css" end |
#do_nothing ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/generators/resque/integration/install/install_generator.rb', line 27 def do_nothing say_status("deprecated", "You are using Rails 3.1 with the asset pipeline enabled, so this generator is not needed.") say_status("", "The necessary files are already in your asset pipeline.") say_status("", "Just add `//= require jquery.progressbar` to your app/assets/javascripts/application.js") say_status("", "If you upgraded your app from Rails 3.0 and still have jquery.progressbar.js in your javascripts, be sure to remove them.") say_status("", "If you do not want the asset pipeline enabled, you may turn it off in application.rb and re-run this generator.") # ok, nothing end |