lib/cicd/builder/mixlib/repo/S3.rb in cicd-builder-0.9.60 vs lib/cicd/builder/mixlib/repo/S3.rb in cicd-builder-0.9.61
- old
+ new
@@ -43,10 +43,11 @@
@s3
end
# ---------------------------------------------------------------------------------------------------------------
def uploadToRepo(artifacts)
+ @logger.info CLASS+'::'+__method__.to_s
s3 = getS3()
artifacts.each{|art|
s3_obj = maybeS3Object(art[:key], s3)
upload = false
@@ -148,10 +149,11 @@
h[value]
end
# ---------------------------------------------------------------------------------------------------------------
def takeInventory()
+ @logger.info CLASS+'::'+__method__.to_s
varianth = nil
# Read and parse in JSON
key, json, over = pullInventory()
unless json.nil?
if json['container'] and json['container']['variants']
@@ -243,9 +245,10 @@
end
filing
end
def pushInventory(json_s, key)
+ @logger.info CLASS+'::'+__method__.to_s
begin
md5 = Digest::MD5.hexdigest(json_s)
# [:'x-amz-meta-digest'] = "md5=#{md5}"
resp = getS3.put_object(bucket: ENV['AWS_S3_BUCKET'],
key: key,
\ No newline at end of file