module R10K::Util::License
Public Class Methods
load()
click to toggle source
# File lib/r10k/util/license.rb, line 9 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