Class: Baleen::Task::Generic

Inherits:
Base
  • Object
show all
Defined in:
lib/baleen/task/generic.rb

Instance Method Summary collapse

Methods inherited from Base

#command, #command=, #commands, #respond, #result, #terminate?

Methods included from Serializable

deserialize, #dup, #method_missing, #params, symbolize_keys, #to_json

Constructor Details

#initialize(opt) ⇒ Generic

Returns a new instance of Generic.



7
8
9
10
11
12
# File 'lib/baleen/task/generic.rb', line 7

def initialize(opt)
  super()
  @params[:work_dir]       = opt[:work_dir]    ||="./"
  @params[:image]          = opt[:image]
  @params[:command]        = opt[:command]
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Baleen::Serializable