cknife 0.1.7 → 0.1.8
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/README.md +2 -0
- data/VERSION +1 -1
- data/bin/cknifeaws +1 -1
- data/cknife.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a56ca9ba2138a51b292217b9254bb9dbe049b808
|
|
4
|
+
data.tar.gz: de0612fa7044778dc72dd7719b03ef28b7e9d751
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cfd7df7db5758fe4f81984eb1682bd04337bab7175b3e88ce144c5f1052b217e5f67469066dff4d18422a863ec00e8644091b3a111ebf4e11e1667e74d5e31bc
|
|
7
|
+
data.tar.gz: 5d6b9873ab3bc5dab84aab32e9db8d6637fdda0616bf11e2b8e7ba25e268126a8bcd03203b8ec56001403c6dd5bf756c1184732614bca08604d294250cc46041
|
data/README.md
CHANGED
|
@@ -294,6 +294,8 @@ Options:
|
|
|
294
294
|
|
|
295
295
|
cknifeaws upsync backups-bucket . --noprompt --backups-retain --glob="db*.dump";
|
|
296
296
|
|
|
297
|
+
find -mtime +7 -iname "*.dump" -delete
|
|
298
|
+
|
|
297
299
|
Which can be used with the following sample [crontab](http://en.wikipedia.org/wiki/Cron#Examples),
|
|
298
300
|
executing once a day at 2am:
|
|
299
301
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.8
|
data/bin/cknifeaws
CHANGED
|
@@ -210,7 +210,7 @@ class Aws < Thor
|
|
|
210
210
|
}.last
|
|
211
211
|
|
|
212
212
|
[f.key,
|
|
213
|
-
"#{(f.content_length.to_f / unit_to_mult[matching]).round(2)}#{matching}",
|
|
213
|
+
"#{f.content_length == 0 ? 0 : (f.content_length.to_f / unit_to_mult[matching]).round(2)}#{matching}",
|
|
214
214
|
f.content_type,
|
|
215
215
|
f.last_modified
|
|
216
216
|
]
|
data/cknife.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: cknife 0.1.
|
|
5
|
+
# stub: cknife 0.1.8 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "cknife"
|
|
9
|
-
s.version = "0.1.
|
|
9
|
+
s.version = "0.1.8"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Mike De La Loza"]
|
|
14
|
-
s.date = "2015-
|
|
14
|
+
s.date = "2015-08-01"
|
|
15
15
|
s.description = "Cali Army Knife, a collection of command line tools, especially for popular API services."
|
|
16
16
|
s.email = "mikedll@mikedll.com"
|
|
17
17
|
s.executables = ["cknifeaws", "cknifedub", "cknifemail", "cknifemysql", "cknifenowtimestamp", "cknifepg", "cknifewcdir", "cknifezerigo"]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cknife
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike De La Loza
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|