Method: Kontena::Command::Finalizer.extended
- Defined in:
- lib/kontena/command.rb
.extended(obj) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/kontena/command.rb', line 23 def self.extended(obj) # Tracepoint is used to trigger finalize once the command is completely # loaded. If done through def self.inherited the finalizer and # after_load callbacks would run before the options are defined. TracePoint.trace(:end) do |t| if obj == t.self obj.finalize t.disable end end end |