Class: Fusuma::Plugin::Executors::Executor

Inherits:
Base
  • Object
show all
Defined in:
lib/fusuma/plugin/executors/executor.rb

Overview

Inherite this base

Direct Known Subclasses

CommandExecutor

Instance Method Summary collapse

Methods inherited from Base

#config_index, #config_param_types, #config_params, inherited, plugins

Instance Method Details

#executable?(_event) ⇒ TrueClass, FalseClass

check executable

Parameters:

  • _event (Event)

Returns:

  • (TrueClass, FalseClass)

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/fusuma/plugin/executors/executor.rb', line 14

def executable?(_event)
  raise NotImplementedError, "override #{self.class.name}##{__method__}"
end

#execute(_event) ⇒ nil

execute somthing

Parameters:

  • _event (Event)

Returns:

  • (nil)

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/fusuma/plugin/executors/executor.rb', line 21

def execute(_event)
  raise NotImplementedError, "override #{self.class.name}##{__method__}"
end