From a62cca34671abf34a0d9cd784d143755213e78a4 Mon Sep 17 00:00:00 2001 From: Andrea Campi Date: Fri, 20 Apr 2012 12:29:07 +0200 Subject: [PATCH] Specify additional bundler groups to skip. --- providers/rails.rb | 1 + resources/rails.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/providers/rails.rb b/providers/rails.rb index d63abcd..bd30733 100644 --- a/providers/rails.rb +++ b/providers/rails.rb @@ -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 diff --git a/resources/rails.rb b/resources/rails.rb index 1fd6d39..bcf27b7 100644 --- a/resources/rails.rb +++ b/resources/rails.rb @@ -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