class Burner::Library::Param::FromRegister

Copy a register's value into a param key. Generally speaking you should only be mutating registers, that way the params stay true to the passed in params for the pipeline. But this job is available in case a param needs to be updated.

Expected Payload input: anything. Payload.params(param_key) output: whatever value was specified in the register.

Public Instance Methods

perform(output, payload) click to toggle source
# File lib/burner/library/param/from_register.rb, line 22
def perform(output, payload)
  output.detail("Pushing value from register: #{register} to param: #{param_key}")

  payload.update_param(param_key, payload[register])
end