class Chef::Resource::ChefMirror::CopyListener

Attributes

errors[R]
mirror[R]

Public Class Methods

new(mirror) click to toggle source
# File lib/chef/resource/chef_mirror.rb, line 189
def initialize(mirror)
  @mirror = mirror
  @errors = []
end

Public Instance Methods

error(str) click to toggle source
# File lib/chef/resource/chef_mirror.rb, line 210
def error(str)
  mirror.converge_by "ERROR: #{str}" do
  end
  @errors << str
end
output(str) click to toggle source

TODO output is not always indicative of a change. We may want to give ChefFS the ability to tell us that info. For now though, assuming any output means change is pretty damn close to the truth.

# File lib/chef/resource/chef_mirror.rb, line 200
def output(str)
  mirror.converge_by str do
  end
end
warn(str) click to toggle source
# File lib/chef/resource/chef_mirror.rb, line 205
def warn(str)
  mirror.converge_by "WARNING: #{str}" do
  end
end