diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-28 19:12:17 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-28 19:12:17 +0100 |
commit | a2e0b3fe4751dce20168ea3d7a480aed8527b870 (patch) | |
tree | ad150dfd9b9205a8065d29ad4c259f50a6570695 /config | |
parent | 373f1d131aebd9dc9c7cc6cf22a9f615627f2eef (diff) | |
download | govuk-mini-environment-admin-a2e0b3fe4751dce20168ea3d7a480aed8527b870.tar govuk-mini-environment-admin-a2e0b3fe4751dce20168ea3d7a480aed8527b870.tar.gz |
Make the git gem optional
As it's not required or useful currently if Guix isn't available
locally.
Diffstat (limited to 'config')
-rw-r--r-- | config/boot.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config/boot.rb b/config/boot.rb index d620a68..f39a63d 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,5 +1,11 @@ require 'pathname' +def activate_gem_if_available(name) + gem name +rescue Gem::MissingSpecError + false +end + gem 'rails' gem 'sass-rails' @@ -11,4 +17,5 @@ gem 'plek' gem 'que' gem 'ruby-terraform' gem 'with_advisory_lock' -gem 'git' + +activate_gem_if_available 'git' |