Exception: Toiler::WaitShutdown

Inherits:
Interrupt
  • Object
show all
Defined in:
lib/toiler/cli.rb

Overview

WaitShutdown is used to handle graceful shutdowns

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wait) ⇒ WaitShutdown

Returns a new instance of WaitShutdown.



16
17
18
19
# File 'lib/toiler/cli.rb', line 16

def initialize(wait)
  super
  @wait = wait
end

Instance Attribute Details

#waitObject

Returns the value of attribute wait.



14
15
16
# File 'lib/toiler/cli.rb', line 14

def wait
  @wait
end