class ChefApply::UI::Terminal::Job
Attributes
exception[R]
prefix[R]
proc[R]
target_host[R]
Public Class Methods
new(prefix, target_host, &block)
click to toggle source
# File lib/chef_apply/ui/terminal/job.rb, line 23 def initialize(prefix, target_host, &block) @proc = block @prefix = prefix @target_host = target_host @error = nil end
Public Instance Methods
run(reporter)
click to toggle source
# File lib/chef_apply/ui/terminal/job.rb, line 30 def run(reporter) @proc.call(reporter) rescue => e reporter.error(e.to_s) @exception = e end