lib/puppet/resource/catalog.rb
def apply(options = {})
    Puppet::Util::Storage.load if host_config?

    transaction = create_transaction(options)

    begin
      transaction.report.as_logging_destination do
        transaction_evaluate_time = Puppet::Util.thinmark do
          transaction.evaluate
        end
        transaction.report.add_times(:transaction_evaluation, transaction_evaluate_time)
      end
    ensure
      # Don't try to store state unless we're a host config
      # too recursive.
      Puppet::Util::Storage.store if host_config?
    end

    yield transaction if block_given?

    transaction
  end
# Apply our catalog to the local host.
# @param options [Hash{Symbol => Object}] a hash of options
# @option options [Puppet::Transaction::Report] :report
#   The report object to log this transaction to. This is optional,
#   and the resulting transaction will create a report if not
#   supplied.
#
# @return [Puppet::Transaction] the transaction created for this
#   application
#
# @api public
Apply our catalog to the local host.
Apply our catalog to the local host .
def apply(options = {})
    Puppet::Util::Storage.load if host_config?
    transaction = create_transaction(options)
    begin
      transaction.report.as_logging_destination do
        transaction_evaluate_time = Puppet::Util.thinmark do
          transaction.evaluate
        end
        transaction.report.add_times(:transaction_evaluation, transaction_evaluate_time)
      end
    ensure
      Puppet::Util::Storage.store if host_config?
    end
    yield transaction if block_given?
    transaction
  end
def apply ( options = { } ) Puppet :: Util :: Storage . load if host_config? transaction = create_transaction ( options ) begin transaction . report . as_logging_destination do transaction_evaluate_time = Puppet :: Util . thinmark do transaction . evaluate end transaction . report . add_times ( :transaction_evaluation , transaction_evaluate_time ) end ensure Puppet :: Util :: Storage . store if host_config? end yield transaction if block_given? transaction end
Apply our catalog to the local host.
Apply our catalog to the local host .
# Don't try to store state unless we're a host config # too recursive.
the transaction created for this application
the transaction created for this application
Puppet::Transaction
options
:report The report object to log this transaction to. This is optional, and the resulting transaction will create a report if not supplied.
: report The report object to log this transaction to . This is optional and the resulting transaction will create a report if not supplied .
api
None