File tree Expand file tree Collapse file tree 7 files changed +16
-19
lines changed Expand file tree Collapse file tree 7 files changed +16
-19
lines changed Original file line number Diff line number Diff line change 11---
22require : rubocop-rspec
3- inherit_from : .rubocop_todo.yml
43AllCops :
54 TargetRubyVersion : ' 2.1'
65 Include :
@@ -157,4 +156,4 @@ Naming/UncommunicativeMethodParamName:
157156
158157# This cop breaks syntax highlighting in VSCode
159158Layout/ClosingHeredocIndentation :
160- Enabled : false
159+ Enabled : false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1212require 'puppet/type'
1313require 'puppet/util/network_device'
1414
15+ # This module contains the main API to register and access types, providers and transports.
1516module Puppet ::ResourceApi
1617 @warning_count = 0
1718
Original file line number Diff line number Diff line change 11require 'puppet/resource_api/type_definition'
22
3+ # rubocop:disable Style/Documentation
34module Puppet ; end
45module Puppet ::ResourceApi ; end
6+ # rubocop:enable Style/Documentation
7+
8+ # This class provides access to all common external dependencies of providers and transports.
9+ # The runtime environment will inject an appropriate implementation.
510class Puppet ::ResourceApi ::BaseContext
611 attr_reader :type
712
Original file line number Diff line number Diff line change 11require 'puppet/resource_api/base_context'
22
3+ # Implement Resource API Conext to log through an IO object, defaulting to `$stderr`.
4+ # There is no access to a device here.
35class Puppet ::ResourceApi ::IOContext < Puppet ::ResourceApi ::BaseContext
46 def initialize ( definition , target = $stderr)
57 super ( definition )
Original file line number Diff line number Diff line change 11require 'puppet/resource_api/base_context'
22require 'puppet/util/logging'
33
4+ # Implement Resource API Conext to log through Puppet facilities
5+ # and access/expose the puppet process' current device
46class Puppet ::ResourceApi ::PuppetContext < Puppet ::ResourceApi ::BaseContext
57 def device
68 # TODO: evaluate facter_url setting for loading config if there is no `current` NetworkDevice
Original file line number Diff line number Diff line change 1+ # rubocop:disable Style/Documentation
2+ module Puppet ; end
3+ module Puppet ::ResourceApi ; end
4+ # rubocop:enable Style/Documentation
5+
16# Remote target transport API
27module Puppet ::ResourceApi ::Transport
38 def register ( schema )
You can’t perform that action at this time.
0 commit comments