Class: Puppet::Transaction::ResourceHarness::ResourceApplicationContext Private
- Inherits:
-
Struct
- Object
- Struct
- Puppet::Transaction::ResourceHarness::ResourceApplicationContext
- Defined in:
- lib/puppet/transaction/resource_harness.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Instance Method Summary collapse
- #record(event) ⇒ Object private
- #resource_present? ⇒ Boolean private
Class Method Details
.from_resource(resource, status) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
313 314 315 316 317 318 319 320 321 |
# File 'lib/puppet/transaction/resource_harness.rb', line 313 def self.from_resource(resource, status) ResourceApplicationContext.new(resource, resource.retrieve_resource.to_hash, Puppet::Util::Storage.cache(resource).dup, (resource[:audit] || []).map(&:to_sym), [], status, resource.parameters.select { |_n, p| p.is_a?(Puppet::Property) && !p.sensitive }) end |
Instance Method Details
#record(event) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
327 328 329 |
# File 'lib/puppet/transaction/resource_harness.rb', line 327 def record(event) status << event end |
#resource_present? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
323 324 325 |
# File 'lib/puppet/transaction/resource_harness.rb', line 323 def resource_present? resource.present?(current_values) end |