Permalink
Browse files

Hard code list of groups to exclude in the bundle install command

Should change it to use rails_env instead of node.chef_environment
because usually for us, rails_env always = 'production', even when
chef_environment = 'staging'
  • Loading branch information...
Tyler Rick
Tyler Rick committed Mar 13, 2012
1 parent 229f250 commit f9e2e17b04c8b428edcf27d5c9cf9d50cb7e07e3
Showing with 2 additions and 1 deletion.
  1. +2 −1 application/recipes/rails.rb
@@ -177,7 +177,8 @@
to "#{app['deploy_to']}/shared/vendor_bundle"
end
common_groups = %w{development test cucumber staging production}
- command = "bundle install --deployment --without #{(common_groups -([node.chef_environment])).join(' ')}"
+ without = ['production']
+ command = "bundle install --deployment --without #{(common_groups - without).join(' ')}"
if app['rvm'] && (ruby_string = app['rvm']['ruby_string'])
command = "#{node['rvm']['root_path']}/bin/rvm-shell '#{ruby_string}' -c '#{command}'"
end

0 comments on commit f9e2e17

Please sign in to comment.