Module: Puppet::Indirector::Envelope

Defined in:
lib/puppet/indirector/envelope.rb

Overview

Provide any attributes or functionality needed for indirected instances.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expirationObject

Returns the value of attribute expiration.



8
9
10
# File 'lib/puppet/indirector/envelope.rb', line 8

def expiration
  @expiration
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/puppet/indirector/envelope.rb', line 10

def expired?
  expiration and expiration < Time.now
end