class Kellerkind::Process::Output
Public Class Methods
method_missing(meth_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/kellerkind/system/process.rb, line 30 def self.method_missing(meth_name, *args, &block) if outputs.has_key?(meth_name) output = outputs[meth_name] if Kellerkind::Config.verbose? output.call(*args) if output.arity == 1 output.call unless output.arity == 1 end else super end end
outputs()
click to toggle source
# File lib/kellerkind/system/process.rb, line 6 def self.outputs { :start_dumping => lambda do puts Kellerkind::Config.start_dumping end, :start_compressing => lambda do puts Kellerkind::Config.start_compressing end, :finished_compressing => lambda do puts Kellerkind::Config.finished_compressing end, :remove_dump => lambda do puts Kellerkind::Config.remove_dump end, :finished_dumping => lambda do |db_name| puts Kellerkind::Config.finished_dumping(db_name) end } end
respond_to?(meth_name)
click to toggle source
Calls superclass method
# File lib/kellerkind/system/process.rb, line 26 def self.respond_to?(meth_name) outputs.has_key?(meth_name) || super end