awspec 0.66.2 → 0.67.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/_resource_types/rds.md +8 -0
- data/doc/resource_types.md +9 -0
- data/lib/awspec/helper/finder/efs.rb +1 -1
- data/lib/awspec/stub/rds.rb +9 -0
- data/lib/awspec/type/efs.rb +1 -1
- data/lib/awspec/type/rds.rb +8 -0
- data/lib/awspec/version.rb +1 -1
- 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: 9b3ee53234c845c3c8b2f13c13285071f3e02a48
|
4
|
+
data.tar.gz: 8c24b03a7cbdd93ce3474657b1a2a2d12294105d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 118dbace4fd900f4b5313695c20d0ee34d424fc2a08ee8b9a0ad1771bbba13027bf42a2a0b7eba42be47c0e8184e410a05135bd5ed3efd3c6a738e63518a85ef
|
7
|
+
data.tar.gz: f8e65b37f6af5b280d2a7a6459f6355add55ea49f2e6886efe38dc9b9207005d0b4642d1cddea33cdbe5b9fb9a677f35a1f71f9fda63d58c3248a4058432db69
|
data/doc/_resource_types/rds.md
CHANGED
data/doc/resource_types.md
CHANGED
data/lib/awspec/stub/rds.rb
CHANGED
@@ -1,9 +1,18 @@
|
|
1
1
|
Aws.config[:rds] = {
|
2
2
|
stub_responses: {
|
3
|
+
list_tags_for_resource: {
|
4
|
+
tag_list: [
|
5
|
+
{
|
6
|
+
key: 'Name',
|
7
|
+
value: 'my-rds'
|
8
|
+
}
|
9
|
+
]
|
10
|
+
},
|
3
11
|
describe_db_instances: {
|
4
12
|
db_instances: [
|
5
13
|
{
|
6
14
|
db_instance_identifier: 'my-rds',
|
15
|
+
db_instance_arn: 'arn:aws:rds:ap-northeast-1a:123456789012:db:my-rds',
|
7
16
|
db_instance_status: 'available',
|
8
17
|
db_instance_class: 'db.t2.medium',
|
9
18
|
vpc_security_groups: [
|
data/lib/awspec/type/efs.rb
CHANGED
data/lib/awspec/type/rds.rb
CHANGED
@@ -51,6 +51,14 @@ module Awspec::Type
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
+
def has_tag?(tag_key, tag_value)
|
55
|
+
arn = resource_via_client.db_instance_arn
|
56
|
+
tag_set = rds_client.list_tags_for_resource({ resource_name: arn })
|
57
|
+
tag_set.tag_list.find do |tag|
|
58
|
+
tag.key == tag_key && tag.value == tag_value
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
54
62
|
private
|
55
63
|
|
56
64
|
def has_vpc_security_group_id?(sg_id)
|
data/lib/awspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.67.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|