Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run bundler after we modify the project's Gemfile
* This should keep CI or any new gemset/environment happy. * We also disable (noop) the original run_bundle task, so that instead we call bundle at the right spot, which also allows us to run bundle only once.
- Loading branch information
Harold Giménez
committed
Nov 4, 2011
1 parent
cca000d
commit 7e06fe7
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,10 @@ def setup_database | |
|
||
def customize_gemfile | ||
build(:include_custom_gems) | ||
if options[:clearance] | ||
build(:add_clearance_gem) | ||
end | ||
bundle_command('install') | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sikachu
Contributor
|
||
end | ||
|
||
def configure_app | ||
|
@@ -99,7 +103,6 @@ def configure_app | |
|
||
def setup_clearance | ||
if options[:clearance] | ||
build(:add_clearance_gem) | ||
build(:generate_clearance) | ||
build(:include_clearance_matchers) | ||
if using_active_record? | ||
|
@@ -156,6 +159,10 @@ def outro | |
say "Remember to run 'rails generate airbrake' with your API key." | ||
end | ||
|
||
def run_bundle | ||
# Let's not: We'll bundle manually at the right spot | ||
end | ||
|
||
protected | ||
|
||
def get_builder_class | ||
|
@@ -165,6 +172,5 @@ def get_builder_class | |
def using_active_record? | ||
!options[:skip_active_record] | ||
end | ||
|
||
end | ||
end |
I think you can do this to save time: