Conditionally install foreman during setup (#8391)

We should avoid install foreman during `bin/setup` if it is already
installed.
This commit is contained in:
Jacob Herrington 2020-06-22 18:47:57 -05:00 committed by GitHub
parent ebc4534246
commit b603e03348
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ chdir APP_ROOT do
system! "bundle config --local cache_all_platforms true"
system("bundle check") || system!("bundle install")
system! "gem install foreman"
system! "gem list \"^foreman$\" -v 0.87.1 -i --silent || gem install foreman"
# Install JavaScript dependencies if using Yarn
system("bin/yarn")