Module: Capistrano::Configuration::Callbacks

Defined in:
lib/capistrano/log_with_awesome.rb

Instance Method Summary collapse

Instance Method Details

#silently_trigger(event, task = nil) ⇒ Object

Trigger the named event without logging.it



43
44
45
46
47
48
# File 'lib/capistrano/log_with_awesome.rb', line 43

def silently_trigger(event, task=nil)
  pending = Array(callbacks[event]).select { |c| c.applies_to?(task) }
  if pending.any?
    pending.each { |callback| callback.call }
  end
end