lib/puppet_x/xebialabs/xldeploy/ci.rb
# returns true if an update is needed
# this is based on difference being found between desired and actual properties
# strict means the check goes both ways
returns true if an update is needed
this is based on difference being found between desired and actual properties
strict means the check goes both ways
returns true if an update is needed this is based on difference being found between desired and actual properties strict means the check goes both ways
def update_needed?(strict = false)
    update = false
    if strict == false
      desired_properties.each {|k,v| update = true unless actual_properties[k] == v }
    else
      desired_properties.each {|k,v| update = true unless actual_properties[k] == v }
      actual_properties.each {|k,v| update = true unless desired_properties[k] == v }
    end
    return update
  end
def update_needed? ( strict = false ) update = false if strict == false desired_properties . each { | k , v | update = true unless actual_properties [ k ] == v } else desired_properties . each { | k , v | update = true unless actual_properties [ k ] == v } actual_properties . each { | k , v | update = true unless desired_properties [ k ] == v } end return update end
returns true if an update is needed
this is based on difference being found between desired and actual properties
strict means the check goes both ways
returns true if an update is needed this is based on difference being found between desired and actual properties strict means the check goes both ways
strict
<not_specific>