Sha256: 638f29417c6ee76d318b230590e65d3bdc473998be9e91c3fcb507f84451751a

Contents?: true

Size: 380 Bytes

Versions: 78

Compression:

Stored size: 380 Bytes

Contents

require_relative 'paths'

module GemHelper
    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
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
nixenvironment-0.0.161 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.160 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.159 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.158 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.157 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.156 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.155 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.154 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.153 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.152 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.150 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.148 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.141 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.147 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.146 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.145 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.144 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.143 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.142 lib/nixenvironment/jenkins/Modules/gem_helper.rb
nixenvironment-0.0.138.1 lib/nixenvironment/jenkins/Modules/gem_helper.rb