class Luban::Deployment::Worker::Task
Attributes
args[R]
cmd[R]
opts[R]
result[R]
Public Class Methods
new(task)
click to toggle source
# File lib/luban/deployment/worker/task.rb, line 12 def initialize(task) @cmd = task[:cmd] @args = OpenStruct.new(task[:args]) @opts = OpenStruct.new(task[:opts]) @result = OpenStruct.new end
Public Instance Methods
to_h()
click to toggle source
# File lib/luban/deployment/worker/task.rb, line 19 def to_h { cmd: cmd, args: args.to_h, opts: opts.to_h, result: result.to_h } end