Class Puppet::Indirector::Request
In: lib/puppet/indirector/request.rb
Parent: Object

This class encapsulates all of the information you need to make an Indirection call, and as a a result also handles REST calls. It‘s somewhat analogous to an HTTP Request object, except tuned for our Indirector.

Methods

Constants

OPTION_ATTRIBUTES = [:ip, :node, :authenticated, :ignore_terminus, :ignore_cache, :instance, :environment]

Attributes

authenticated  [RW] 
ignore_cache  [RW] 
ignore_terminus  [RW] 
indirection_name  [R] 
instance  [RW] 
ip  [RW] 
key  [RW] 
method  [RW] 
node  [RW] 
options  [RW] 
port  [RW] 
protocol  [RW] 
server  [RW] 
uri  [RW] 

Public Class methods

Public Instance methods

Is this an authenticated request?

LAK:NOTE This is a messy interface to the cache, and it‘s only used by the Configurer class. I decided it was better to implement it now and refactor later, when we have a better design, than to spend another month coming up with a design now that might not be any better.

Look up the indirection based on the name provided.

Are we trying to interact with multiple resources, or just one?

Create the query string, if options are present.

Should we allow use of the cached object?

[Validate]