s3_website_monadic 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e02998ffcdd53134cc43365b7d958d6e5ac84d8
|
4
|
+
data.tar.gz: 06f5c5be34c990d4d8cef7fc03ed6993680a833c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fd0bfa68863f8c6ac38bf2292deed7e6096e92625905dbf03e92af8c377e120d434e17c657361215ca692b6ba7c67d8efdf4a140b31ce8ba483916cfb5f00d0
|
7
|
+
data.tar.gz: 0df2a5712cf8fcbb144f586158fe7a6560566907b1864fe6d604c4de2775c43215eb460702bcebffbcc579d283187d450e3c55c317d73472924fb6afcc6f9a4e
|
data/s3_website.gemspec
CHANGED
@@ -61,7 +61,7 @@ object CloudFront {
|
|
61
61
|
type CloudFrontClientProvider = (Config) => AmazonCloudFront
|
62
62
|
|
63
63
|
case class SuccessfulInvalidation(invalidatedItemsCount: Int) extends SuccessReport {
|
64
|
-
def reportMessage = s"Invalidated $invalidatedItemsCount item
|
64
|
+
def reportMessage = s"Invalidated ${countToString(invalidatedItemsCount, "item")} on CloudFront"
|
65
65
|
}
|
66
66
|
|
67
67
|
case class FailedInvalidation(error: Throwable) extends FailureReport {
|
@@ -156,11 +156,11 @@ object Push {
|
|
156
156
|
"There was nothing to push."
|
157
157
|
case PushCounts(updates, newFiles, failures, redirects, deletes) =>
|
158
158
|
val reportClauses: scala.collection.mutable.ArrayBuffer[String] = ArrayBuffer()
|
159
|
-
if (updates > 0) reportClauses += s"Updated $updates file
|
160
|
-
if (newFiles > 0) reportClauses += s"Created $newFiles file
|
161
|
-
if (failures > 0) reportClauses += s"$failures operation
|
162
|
-
if (redirects > 0) reportClauses += s"Applied $redirects redirect
|
163
|
-
if (deletes > 0) reportClauses += s"Deleted $deletes
|
159
|
+
if (updates > 0) reportClauses += s"Updated ${countToString(updates, "file")}."
|
160
|
+
if (newFiles > 0) reportClauses += s"Created ${countToString(newFiles, "file")}."
|
161
|
+
if (failures > 0) reportClauses += s"${countToString(failures, "operation")} failed." // This includes both failed uploads and deletes.
|
162
|
+
if (redirects > 0) reportClauses += s"Applied ${countToString(redirects, "redirect")}."
|
163
|
+
if (deletes > 0) reportClauses += s"Deleted ${countToString(deletes, "file")}."
|
164
164
|
reportClauses.mkString(" ")
|
165
165
|
}
|
166
166
|
|
@@ -150,7 +150,7 @@ object S3 {
|
|
150
150
|
upload.uploadType match {
|
151
151
|
case NewFile => s"Created ${upload.s3Key} ($metadataReport)"
|
152
152
|
case Update => s"Updated ${upload.s3Key} ($metadataReport)"
|
153
|
-
case Redirect => s"
|
153
|
+
case Redirect => s"Redirected ${upload.essence.left.get.key} to ${upload.essence.left.get.redirectTarget}"
|
154
154
|
}
|
155
155
|
|
156
156
|
def s3Key = upload.s3Key
|