lib/chook/event/handled_event.rb
# run a single handler specified by filename
#
run a single handler specified by filename
run a single handler specified by filename
def handle_by_name(handler_to_run)
      handler = Handlers.named_handlers[handler_to_run]
      return "No named handler '#{handler_to_run}'" unless handler
      if handler.is_a? Pathname
        pipe_to_executable handler
      else
        handle_with_proc handler
      end 
      "Processed by named handler '#{handler_to_run}'"
    end
def handle_by_name ( handler_to_run ) handler = Handlers . named_handlers [ handler_to_run ] return "No named handler '#{handler_to_run}'" unless handler if handler . is_a? Pathname pipe_to_executable handler else handle_with_proc handler end "Processed by named handler '#{handler_to_run}'" end
run a single handler specified by filename
run a single handler specified by filename
# if
handler_to_run