lib/puppet_x/coi/jboss/provider/deploy.rb
# Method that returs true if it's actualy exact same deployment checked by hash of artifact
# @return [Boolean]
Method that returs true if it's actualy exact same deployment checked by hash of artifact
Method that returs true if it ' s actualy exact same deployment checked by hash of artifact
def exact_deployment?
    artifact_hash = digest_of_artifact
    deployed_hash = digest_of_deployed
    if artifact_hash == deployed_hash
      Puppet.debug "Same exact deployment found, compared by hash: #{artifact_hash}. Skipping deploy."
      true
    else
      Puppet.debug "Deployment hash: #{deployed_hash} differs from expected artifact hash: #{artifact_hash}. Redeploying."
      false
    end
  end
def exact_deployment? artifact_hash = digest_of_artifact deployed_hash = digest_of_deployed if artifact_hash == deployed_hash Puppet . debug "Same exact deployment found, compared by hash: #{artifact_hash}. Skipping deploy." true else Puppet . debug "Deployment hash: #{deployed_hash} differs from expected artifact hash: #{artifact_hash}. Redeploying." false end end
Method that returs true if it's actualy exact same deployment checked by hash of artifact
Method that returs true if it ' s actualy exact same deployment checked by hash of artifact
None
Boolean