Method: Puppet::Transaction::ResourceHarness#schedule
- Defined in:
- lib/puppet/transaction/resource_harness.rb
#schedule(resource) ⇒ 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.
52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/puppet/transaction/resource_harness.rb', line 52 def schedule(resource) unless resource.catalog resource.warning _("Cannot schedule without a schedule-containing catalog") return nil end name = resource[:schedule] return nil unless name resource.catalog.resource(:schedule, name) || resource.fail(_("Could not find schedule %{name}") % { name: name }) end |