mongolly 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mongolly/shepherd.rb +1 -1
- data/lib/mongolly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b713755ba462faa167a5f77618970f336b5f84d1
|
|
4
|
+
data.tar.gz: 65ab23831ee92c2a296a6d1b898dd5f1c2e764ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e472e1c767ad5563c50ed14be637c03fcc1c852ca3a5b11a0c976da568a4157562daba5d773717fb26bee2581be2a5fe72ac7a4df30fe25117c2f2af9eda664b
|
|
7
|
+
data.tar.gz: 3c4623600ee2eaca0a772d02687b8702cb9f08fb40bca9e0164637ff407dcd153442068ca7746a07c394223b517d119b7a7a68914dc37840f649408152ec6ab0
|
data/lib/mongolly/shepherd.rb
CHANGED
|
@@ -36,7 +36,7 @@ module Mongolly
|
|
|
36
36
|
@logger.debug "deleting snapshots older than #{age}}"
|
|
37
37
|
ec2.snapshots.with_owner(:self).each do |snapshot|
|
|
38
38
|
next if snapshot.tags[:created_at].nil? || snapshot.tags[:backup_key].nil?
|
|
39
|
-
if Time.parse
|
|
39
|
+
if Time.parse(snapshot.tags[:created_at]).utc < age
|
|
40
40
|
@logger.debug "deleting snapshot #{snapshot.id} tagged #{snapshot.tags[:backup_key]} created at #{snapshot.tags[:created_at]}, earlier than #{age}"
|
|
41
41
|
snapshot.delete unless @dry_run
|
|
42
42
|
end
|
data/lib/mongolly/version.rb
CHANGED