Class: Lambchop::Tail
- Inherits:
-
Object
- Object
- Lambchop::Tail
- Defined in:
- lib/lambchop/tail.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(function_name, options = {}) ⇒ Tail
constructor
A new instance of Tail.
- #tail ⇒ Object
Constructor Details
#initialize(function_name, options = {}) ⇒ Tail
Returns a new instance of Tail.
6 7 8 9 |
# File 'lib/lambchop/tail.rb', line 6 def initialize(function_name, = {}) @function_name = function_name = end |
Class Method Details
.tail(function_name, options = {}) ⇒ Object
2 3 4 |
# File 'lib/lambchop/tail.rb', line 2 def self.tail(function_name, = {}) self.new(function_name, ).tail end |
Instance Method Details
#tail ⇒ Object
11 12 13 14 15 |
# File 'lib/lambchop/tail.rb', line 11 def tail trap(:INT) { exit } unless Lambchop::Utils.debug? Lambchop::WatchDog.start(@function_name, ) sleep end |