Skip to content

Commit

Permalink
Specify additional bundler groups to skip.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Campi committed Apr 20, 2012
1 parent 60efc04 commit a62cca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions providers/rails.rb
Expand Up @@ -75,6 +75,7 @@
to "#{new_resource.path}/shared/vendor_bundle"
end
common_groups = %w{development test cucumber staging production}
common_groups += new_resource.bundler_without_groups
common_groups -= [new_resource.environment_name]
common_groups = common_groups.join(' ')
execute "bundle install #{new_resource.bundler_deployment ? "--deployment " : ""}--without #{common_groups}" do
Expand Down
1 change: 1 addition & 0 deletions resources/rails.rb
Expand Up @@ -27,6 +27,7 @@
attribute :gems, :kind_of => [Array, Hash], :default => []
attribute :bundler, :kind_of => [NilClass, TrueClass, FalseClass], :default => nil
attribute :bundler_deployment, :kind_of => [NilClass, TrueClass, FalseClass], :default => nil
attribute :bundler_without_groups, :kind_of => [Array], :default => []

def database(*args, &block)
@database ||= Mash.new
Expand Down

0 comments on commit a62cca3

Please sign in to comment.