awspec 0.26.0 → 0.26.1
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/s3_bucket.md +8 -0
- data/doc/resource_types.md +8 -0
- data/lib/awspec/type/base.rb +2 -2
- data/lib/awspec/type/s3_bucket.rb +2 -2
- data/lib/awspec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5486269883d1f0a96ec29bed97a8b3b0b4dcbd34
|
4
|
+
data.tar.gz: 65bd50f7d240b168b9a66bf244d4e7b5a0392e75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c25de1d0fa1b2152a9169dacd2989ecbc89d559235f37ce57cb2b31ad8115f1aaafb9245e7381a7117734d4b9606841eee2452bb16af3d0c52edfbf31ae49432
|
7
|
+
data.tar.gz: 9947ccdfc20409da767dc0d159e70476f79e6883fedbf7e56a07760db0044d07a215ebb15efed1f42d7ffda0867ef6ff68328d41599d1e3c06a85ec62350ce27
|
@@ -79,3 +79,11 @@ describe s3_bucket('my-bucket') do
|
|
79
79
|
its('acl.owner.display_name') { should eq 'my-bucket-owner' }
|
80
80
|
end
|
81
81
|
```
|
82
|
+
|
83
|
+
or
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
describe s3_bucket('my-bucket') do
|
87
|
+
its('resource.acl.owner.display_name') { should eq 'my-bucket-owner' }
|
88
|
+
end
|
89
|
+
```
|
data/doc/resource_types.md
CHANGED
@@ -362,6 +362,14 @@ describe s3_bucket('my-bucket') do
|
|
362
362
|
end
|
363
363
|
```
|
364
364
|
|
365
|
+
or
|
366
|
+
|
367
|
+
```ruby
|
368
|
+
describe s3_bucket('my-bucket') do
|
369
|
+
its('resource.acl.owner.display_name') { should eq 'my-bucket-owner' }
|
370
|
+
end
|
371
|
+
```
|
372
|
+
|
365
373
|
## <a name="route53_hosted_zone">route53_hosted_zone</a>
|
366
374
|
|
367
375
|
Route53HostedZone resource type.
|
data/lib/awspec/type/base.rb
CHANGED
@@ -33,8 +33,8 @@ module Awspec::Type
|
|
33
33
|
if @resource_via_client.members.include?(describe)
|
34
34
|
@resource_via_client[describe]
|
35
35
|
else
|
36
|
-
super unless self.respond_to?(:
|
37
|
-
method_missing_via_black_list(name, delegate_to:
|
36
|
+
super unless self.respond_to?(:resource)
|
37
|
+
method_missing_via_black_list(name, delegate_to: resource)
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
@@ -58,8 +58,8 @@ module Awspec::Type
|
|
58
58
|
bp ? (bp.policy.read == policy.gsub(/(\n|\r|\r\n|\s|\t)/, '')) : false
|
59
59
|
end
|
60
60
|
|
61
|
-
def
|
62
|
-
@
|
61
|
+
def resource
|
62
|
+
@resource ||= Awspec::ResourceReader.new(Aws::S3::Bucket.new(@id))
|
63
63
|
end
|
64
64
|
|
65
65
|
private
|
data/lib/awspec/version.rb
CHANGED