Permalink
Browse files

Adding rails_widget option

  • Loading branch information...
1 parent 26d047f commit 29db7bcbc0bf5be7e42af5f222096a5b9d05843c Winton Welsh committed Nov 12, 2008
Showing with 9 additions and 0 deletions.
  1. +4 −0 lib/cookbook.rb
  2. +5 −0 lib/recipes/rails.rb
View
@@ -31,6 +31,7 @@
set :nginx_dir, fetch(:nginx_dir, '/usr/local/nginx/conf')
set :mysql_dir, fetch(:mysql_dir, '/etc/mysql')
set :app_helpers, fetch(:app_helpers, false)
+ set :rails_widget, fetch(:rails_widget, false)
set :ultrasphinx, fetch(:ultrasphinx, false)
set :thinking_sphinx, fetch(:thinking_sphinx, false)
set :attachment_fu, fetch(:attachment_fu, false)
@@ -63,6 +64,9 @@
if attachment_fu
after 'deploy:update_code', 'rails:config:attachment_fu' # Configure attachment_fu
end
+ if rails_widget
+ after 'deploy:update_code', 'rails:config:rails_widget' # Configure attachment_fu
+ end
if ultrasphinx
after 'deploy:update_code', 'rails:config:ultrasphinx' # Configure ultrasphinx
end
View
@@ -38,6 +38,11 @@
]
end
+ desc "Configure rails_widget"
+ task :rails_widget, :roles => :app do
+ run "cd #{release_path} && rake RAILS_ENV=production widget:production"
+ end
+
namespace :thinking_sphinx do
desc "Configures thinking_sphinx"
task :default, :roles => :app do

0 comments on commit 29db7bc

Please sign in to comment.