Sha256: 6f73df8327298be8f14c49455809db3ea7e3fd32911affa015953d84970b8cd5
Contents?: true
Size: 652 Bytes
Versions: 10
Compression:
Stored size: 652 Bytes
Contents
require 'puppet/resource_api/base_context' require 'puppet/util/logging' class Puppet::ResourceApi::PuppetContext < Puppet::ResourceApi::BaseContext def device # TODO: evaluate facter_url setting for loading config if there is no `current` NetworkDevice raise 'no device configured' unless Puppet::Util::NetworkDevice.current Puppet::Util::NetworkDevice.current end def log_exception(exception, message: 'Error encountered', trace: false) super(exception, message: message, trace: trace || Puppet[:trace]) end protected def send_log(level, message) Puppet::Util::Log.create(level: level, message: message) end end
Version data entries
10 entries across 10 versions & 1 rubygems