Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit f9e2e17b04c8b428edcf27d5c9cf9d50cb7e07e3 1 parent 229f250
Tyler Rick authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  application/recipes/rails.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.