Class: Puppet::SSL::StateMachine::Wait
- Defined in:
- lib/puppet/ssl/state_machine.rb
Overview
We cannot make progress, so wait if allowed to do so, or error.
Instance Attribute Summary
Attributes inherited from SSLState
Instance Method Summary collapse
Methods inherited from SSLState
Constructor Details
This class inherits a constructor from Puppet::SSL::StateMachine::SSLState
Instance Method Details
#next_state ⇒ Object
188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/puppet/ssl/state_machine.rb', line 188 def next_state time = @machine.onetime ? 0 : @machine.waitforcert if time < 1 puts _("Exiting; no certificate found and waitforcert is disabled") exit(1) else sleep(time) # our ssl directory may have been cleaned while we were # sleeping, start over from the top NeedCACerts.new(@machine) end end |