awful 0.0.164 → 0.0.165
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/kms.rb +23 -0
- data/lib/awful/param.rb +1 -1
- 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: 56f13a4c518bf160a83d110f3cacdd7bbee62bbb
|
4
|
+
data.tar.gz: 0612b58b2f7e8f9e9ffc93f65a4a3b147ede0040
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d0de933e8d42b4b57e913e8c01a85030e4556d18b5d4e7af876db398da2f0d8170323545fab8d8ec690cbc52a64bbc313093689f6f684392a48bfb8d23c673
|
7
|
+
data.tar.gz: 656f232bd3c93fad345ee5c1ccf79a14df01a367d404352e3ef29b70f226ef12d245e037c04a089c8b85d5d4409b21e0aefaf2fd535768dd97c44c400f6aa32d
|
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.7.
|
24
|
+
spec.add_dependency('aws-sdk', '>= 2.7.9')
|
25
25
|
spec.add_dependency('thor')
|
26
26
|
spec.add_dependency('dotenv')
|
27
27
|
end
|
data/lib/awful/kms.rb
CHANGED
@@ -106,5 +106,28 @@ module Awful
|
|
106
106
|
puts kms.decrypt(ciphertext_blob: key)
|
107
107
|
end
|
108
108
|
|
109
|
+
desc 'tag KEY=VALUE ...', 'add one or more tags to key'
|
110
|
+
def tag(id, *tags)
|
111
|
+
kms.tag_resource(
|
112
|
+
key_id: id_or_alias(id),
|
113
|
+
tags: tags.map do |tag|
|
114
|
+
k,v = tag.split(/[:=]/)
|
115
|
+
{tag_key: k, tag_value: v}
|
116
|
+
end
|
117
|
+
)
|
118
|
+
end
|
119
|
+
|
120
|
+
desc 'tags', 'list tags for key'
|
121
|
+
def tags(id)
|
122
|
+
paginate(:tags) do |marker|
|
123
|
+
kms.list_resource_tags(
|
124
|
+
key_id: id_or_alias(id),
|
125
|
+
next_marker: marker,
|
126
|
+
)
|
127
|
+
end.output do |tags|
|
128
|
+
print_table tags.map(&:to_a)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
109
132
|
end
|
110
133
|
end
|
data/lib/awful/param.rb
CHANGED
@@ -26,7 +26,7 @@ module Awful
|
|
26
26
|
end.output do |params|
|
27
27
|
if options[:long]
|
28
28
|
print_table params.map { |p|
|
29
|
-
[p.name, p.type, p.description, p.key_id, p.last_modified_date, p.last_modified_user]
|
29
|
+
[p.name, p.type, p.description, p.key_id, p.last_modified_date, p.last_modified_user.split('/').last]
|
30
30
|
}
|
31
31
|
else
|
32
32
|
puts params.map(&:name)
|
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.165
|
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-02-
|
11
|
+
date: 2017-02-16 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.7.
|
47
|
+
version: 2.7.9
|
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.7.
|
54
|
+
version: 2.7.9
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: thor
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|