Skip to content

Commit

Permalink
Merge pull request ManageIQ#15585 from Fryguy/fix_bundle_override
Browse files Browse the repository at this point in the history
Fix bundle override in ManageIQ::Environment
  • Loading branch information
bdunne authored Jul 17, 2017
2 parents da486b2 + d64fe19 commit 295c3fd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/manageiq/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,19 @@ def self.install_bundler
end

def self.bundle_install(root = APP_ROOT)
system('bundle check', :chdir => root) || system!('bundle install', :chdir => root)
system("bundle check", :chdir => root) ||
system!("bundle install #{bundle_params}", :chdir => root)
end

def self.bundle_update(root = APP_ROOT)
system!('bundle update', :chdir => root)
system!("bundle update #{bundle_params}", :chdir => root)
end

def self.bundle_params
"--jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}" if ENV['CI']
end
private_class_method :bundle_params

def self.create_database
puts "\n== Updating database =="
run_rake_task("db:create")
Expand Down

0 comments on commit 295c3fd

Please sign in to comment.