aboutsummaryrefslogtreecommitdiff
path: root/config/boot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/boot.rb')
-rw-r--r--config/boot.rb9
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'