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.



6
7
8
# File 'lib/puppet/indirector/envelope.rb', line 6

def expiration
  @expiration
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


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

def expired?
  expiration and expiration < Time.now
end