Class: Pleiades::Command::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/pleiades/core/command/factory.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event, path_info) ⇒ Factory

Returns a new instance of Factory.



11
12
13
14
# File 'lib/pleiades/core/command/factory.rb', line 11

def initialize(event, path_info)
  @event = event
  @path_info = path_info
end

Class Method Details

.production(event, path_info) ⇒ Object



6
7
8
9
# File 'lib/pleiades/core/command/factory.rb', line 6

def self.production(event, path_info)
  @factory = new(event, path_info)
  @factory.operate
end

Instance Method Details

#operateObject



16
17
18
# File 'lib/pleiades/core/command/factory.rb', line 16

def operate
  executor_class(decorate_command(command_class))
end