mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Reduce bundler install output
bundle install always shows a very long list of all gems. But we really only want to know about the new gems being installed. Thankfully there's an option for that.
This commit is contained in:
@@ -4,6 +4,8 @@ require "fileutils"
|
||||
# path to your application root.
|
||||
APP_ROOT = File.expand_path("..", __dir__)
|
||||
|
||||
BUNDLE_ENV = { "BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES"=> "true" }
|
||||
|
||||
def system!(*args)
|
||||
system(*args) || abort("\n== Command #{args} failed ==")
|
||||
end
|
||||
@@ -15,7 +17,7 @@ FileUtils.chdir APP_ROOT do
|
||||
|
||||
puts "== Installing dependencies =="
|
||||
system! "script/install-bundler"
|
||||
system("bundle check") || system!("bundle install")
|
||||
system("bundle check") || system!(BUNDLE_ENV, "bundle install")
|
||||
|
||||
# Install JavaScript dependencies
|
||||
system("bin/yarn")
|
||||
|
||||
Reference in New Issue
Block a user