Class: Baleen::Task::ImageUpdate

Inherits:
Base
  • Object
show all
Includes:
Serializable
Defined in:
lib/baleen/task/image_update.rb

Instance Method Summary collapse

Methods included from Serializable

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

Methods inherited from Base

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

Constructor Details

#initialize(opt) ⇒ ImageUpdate

Returns a new instance of ImageUpdate.



9
10
11
12
13
14
15
16
17
# File 'lib/baleen/task/image_update.rb', line 9

def initialize(opt)
  super()
  @params[:image]          = opt[:image]       ||="kimh/baleen-poc"
  @params[:command]        = opt[:command]
  @params[:work_dir]       = opt[:work_dir]
  @params[:files]          = "" # Without this, #start_runner raises exception. Need to think what to do.
  @params[:concurrency]    = 1
  @params[:commit]         = true
end

Dynamic Method Handling

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