Module: GemHelper
- Included in:
- SlaveInitializer
- Defined in:
- lib/nixenvironment/jenkins/Modules/gem_helper.rb
Instance Method Summary collapse
Instance Method Details
#check_uninstalled_gems(gems) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/nixenvironment/jenkins/Modules/gem_helper.rb', line 4 def check_uninstalled_gems(gems) for gem_name in gems found = Gem::Specification.find_all_by_name(gem_name) if found.count == 0 `sudo gem install #{gem_name}` else puts("#{gem_name} is already installed") end end end |