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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65aee4b0fe8f2f7d0b6d5efc4931eafde3d4e7ff
4
- data.tar.gz: 66d63f015538426b8acd1cf630559c6395ec5099
3
+ metadata.gz: 56f13a4c518bf160a83d110f3cacdd7bbee62bbb
4
+ data.tar.gz: 0612b58b2f7e8f9e9ffc93f65a4a3b147ede0040
5
5
  SHA512:
6
- metadata.gz: 6e26ac0c11256c480bdc9ed8b2282252af83701c4acb4e0439fb7060d3806673f56babc8a213169d1c4d311c8902135064757464bcf50dce8bfe2199b85078aa
7
- data.tar.gz: c94211a9fb8e587d88defb37e312c83b763f40a5a3d15c97c21ab349ccae37cbf43135fd787a5e2518deda0283a7adca280aab85fc96814d39a7b512a73d0146
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.2')
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
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.164'
2
+ VERSION = '0.0.165'
3
3
  end
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.164
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 00:00:00.000000000 Z
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.2
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.2
54
+ version: 2.7.9
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: thor
57
57
  requirement: !ruby/object:Gem::Requirement