awful 0.0.169 → 0.0.170
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/awful.gemspec +1 -1
- data/lib/awful/dynamodb.rb +18 -0
- data/lib/awful/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46b16f11adba9027c3b20d1f5e373d97c18a3c23
|
4
|
+
data.tar.gz: 7452fde330e44ba9466d876f854b6ec39ea5f33c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa9da54dc7b1a696b931e7e17b91a6179fe0b050e7814b39247e15d345913d2625f9e784e5b90ae26b6eb7a75f06bc92967bc0ca61e897ba5ab62ee9846cafc
|
7
|
+
data.tar.gz: 73e623b46224db234ec100bbe95f1a56614c70397b1e1da63ad2d49b8e39101f3892b12df8b63756da9a440dbaa197b17e91ca31006b30bc4a09a9758daf26a5
|
data/awful.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.7"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
|
24
|
-
spec.add_dependency('aws-sdk', '>= 2.
|
24
|
+
spec.add_dependency('aws-sdk', '>= 2.8.0')
|
25
25
|
spec.add_dependency('thor')
|
26
26
|
spec.add_dependency('dotenv')
|
27
27
|
end
|
data/lib/awful/dynamodb.rb
CHANGED
@@ -366,6 +366,24 @@ module Awful
|
|
366
366
|
)
|
367
367
|
end
|
368
368
|
|
369
|
+
desc 'ttl TABLE [ATTRIBUTE]', 'get/set time to live for table'
|
370
|
+
method_option :disable, type: :boolean, default: false, desc: 'disable TTL'
|
371
|
+
def ttl(name, attribute = nil)
|
372
|
+
if attribute
|
373
|
+
dynamodb.update_time_to_live(
|
374
|
+
table_name: name,
|
375
|
+
time_to_live_specification: {
|
376
|
+
enabled: !options[:disable],
|
377
|
+
attribute_name: attribute,
|
378
|
+
}
|
379
|
+
)
|
380
|
+
else
|
381
|
+
dynamodb.describe_time_to_live(table_name: name).time_to_live_description.output do |t|
|
382
|
+
puts YAML.dump(stringify_keys(t.to_hash))
|
383
|
+
end
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
369
387
|
## see lambda_events.rb for subcommands
|
370
388
|
desc 'streams SUBCOMMANDS', 'subcommands for dynamodb streams'
|
371
389
|
subcommand 'streams', Streams
|
data/lib/awful/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.170
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ric Lister
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.8.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
54
|
+
version: 2.8.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: thor
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|