lib/puppet/transaction.rb
# Prefetch any providers that support it, yo.  We don't support prefetching
# types, just providers.
Prefetch any providers that support it, yo.  We don't support prefetching
types, just providers.
Prefetch any providers that support it yo . We don ' t support prefetching types just providers .
def prefetch(provider_class, resources)
    type_name = provider_class.resource_type.name
    return if @prefetched_providers[type_name][provider_class.name]
    Puppet.debug "Prefetching #{provider_class.name} resources for #{type_name}"
    begin
      provider_class.prefetch(resources)
    rescue LoadError, Puppet::MissingCommand => detail
      Puppet.log_exception(detail, "Could not prefetch #{type_name} provider '#{provider_class.name}': #{detail}")
    end
    @prefetched_providers[type_name][provider_class.name] = true
  end
def prefetch ( provider_class , resources ) type_name = provider_class . resource_type . name return if @prefetched_providers [ type_name ] [ provider_class . name ] Puppet . debug "Prefetching #{provider_class.name} resources for #{type_name}" begin provider_class . prefetch ( resources ) rescue LoadError , Puppet :: MissingCommand => detail Puppet . log_exception ( detail , "Could not prefetch #{type_name} provider '#{provider_class.name}': #{detail}" ) end @prefetched_providers [ type_name ] [ provider_class . name ] = true end
Prefetch any providers that support it, yo.
Prefetch any providers that support it yo .
provider_class
<not_specific>
resources
<not_specific>