Sha256: f93737e3186a7199bf932ce9c9750c6a454c1df23bd7ae41d6d519b0bad54a02
Contents?: true
Size: 663 Bytes
Versions: 8
Compression:
Stored size: 663 Bytes
Contents
require 'r10k/errors' require 'r10k/features' module R10K module Util module License extend R10K::Logging def self.load if R10K::Features.available?(:pe_license) logger.debug2 "pe_license feature is available, loading PE license key" begin return PELicense.load_license_key rescue PELicense::InvalidLicenseError => e raise R10K::Error.wrap(e, "Invalid PE license detected: #{e.message}") end else logger.debug2 "pe_license feature is not available, PE only Puppet modules will not be downloadable." nil end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems