Class: Rango::Tasks
- Thor
- Rango::Tasks
Public Visibility
Public Instance Method Summary
#boot(*args) |
---|
Public Class Method Details
hook
public
hook(&block)
[View source]
15 16 17 |
# File 'lib/rango/ext/thor.rb', line 15 def self.hook(&block) @@hooks.push(block) end |
inherited
public
inherited(subclass)
[View source]
19 20 21 |
# File 'lib/rango/ext/thor.rb', line 19 def self.inherited(subclass) subclass.hooks = self.hooks end |
Public Instance Method Details
boot
public
boot(*args)
[View source]
23 24 25 26 27 28 29 |
# File 'lib/rango/ext/thor.rb', line 23 def boot(*args) require "rango" Rango.boot(*args) self.class.hooks.each(&:call) rescue Exception => exception Rango.logger.exception(exception) end |