awspec 0.46.0 → 0.47.0

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: 0f7b5b4788484ec4a2f9524278b090b04d9cd251
4
- data.tar.gz: cb5f51f033ed5264cd54594136f647a1eebfea65
3
+ metadata.gz: f75f06c93510af2f1a7f3931a5c63858d1bc47b6
4
+ data.tar.gz: f24d388ea583d2ae6357f4e1ec9ae447fe7e5258
5
5
  SHA512:
6
- metadata.gz: 15bbe8871911a5750a287191f878c075ca1b7b9cfc6b171d5165ec84c698df8ec001907eeff5196e78ce63880adbb6e44d10968e9883d48f03dcbe794050c831
7
- data.tar.gz: 40cf9036a8e6fcaf673e22ceb185389d1e1aa7a5c605050898aff31e56204537bc6be6e1d64650987e2e62ce9ca615f3f6b47b16707ca4b4bd93e2082bc95d96
6
+ metadata.gz: e6bea348559eccdffee3c28ed315bd1efd7ca21dd7e2282704828ea7d6672f267cf6fe137a8cb019831030cae6fd899a277042f1b72aaac6f2266a104a86e7fc
7
+ data.tar.gz: 2683c4cd677e9022a2f26fa506a3bce06321bab15ec05cd9aac4d6354b87b6162b65b260bded05140b00306c511c4e090af6948f9948a7dfd8c5dc877ec03b84
@@ -6,11 +6,11 @@ describe cloudtrail('my-trail') do
6
6
  end
7
7
  ```
8
8
 
9
- ### include_global_service_events
9
+ ### have_global_service_events_included
10
10
 
11
11
  ```ruby
12
12
  describe cloudtrail('my-trail') do
13
- it { should include_global_service_events }
13
+ it { should have_global_service_events_included }
14
14
  end
15
15
  ```
16
16
 
@@ -29,3 +29,11 @@ describe cloudtrail('my-trail') do
29
29
  it { should have_log_file_validation_enabled }
30
30
  end
31
31
  ```
32
+
33
+ ### be_logging
34
+
35
+ ```ruby
36
+ describe cloudtrail('my-trail') do
37
+ it { should be_logging }
38
+ end
39
+ ```
@@ -103,6 +103,14 @@ end
103
103
  ```
104
104
 
105
105
 
106
+ ### be_logging
107
+
108
+ ```ruby
109
+ describe cloudtrail('my-trail') do
110
+ it { should be_logging }
111
+ end
112
+ ```
113
+
106
114
  ### be_multi_region_trail
107
115
 
108
116
  ```ruby
@@ -114,6 +122,13 @@ end
114
122
 
115
123
  ### have_global_service_events_included
116
124
 
125
+ ```ruby
126
+ describe cloudtrail('my-trail') do
127
+ it { should have_global_service_events_included }
128
+ end
129
+ ```
130
+
131
+
117
132
  ### have_log_file_validation_enabled
118
133
 
119
134
  ```ruby
@@ -122,6 +137,7 @@ describe cloudtrail('my-trail') do
122
137
  end
123
138
  ```
124
139
 
140
+
125
141
  ### its(:name), its(:s3_bucket_name), its(:s3_key_prefix), its(:sns_topic_name), its(:include_global_service_events), its(:is_multi_region_trail), its(:home_region), its(:trail_arn), its(:log_file_validation_enabled), its(:cloud_watch_logs_log_group_arn), its(:cloud_watch_logs_role_arn), its(:kms_key_id)
126
142
  ## <a name="cloudwatch_alarm">cloudwatch_alarm</a>
127
143
 
@@ -10,6 +10,14 @@ module Awspec::Helper
10
10
  trail.name == id
11
11
  end
12
12
  end
13
+
14
+ def get_trail_status(id)
15
+ cloudtrail_client.get_trail_status(name: id)
16
+ end
17
+
18
+ def is_logging?(id)
19
+ ret = get_trail_status(id).is_logging
20
+ end
13
21
  end
14
22
  end
15
23
  end
@@ -9,6 +9,9 @@ Aws.config[:cloudtrail] = {
9
9
  log_file_validation_enabled: true
10
10
  }
11
11
  ]
12
+ },
13
+ get_trail_status: {
14
+ is_logging: true
12
15
  }
13
16
  }
14
17
  }
@@ -19,5 +19,9 @@ module Awspec::Type
19
19
  def has_log_file_validation_enabled?
20
20
  @resource_via_client.log_file_validation_enabled
21
21
  end
22
+
23
+ def logging?
24
+ is_logging?(@id)
25
+ end
22
26
  end
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.46.0'
2
+ VERSION = '0.47.0'
3
3
  end
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.46.0
4
+ version: 0.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-15 00:00:00.000000000 Z
11
+ date: 2016-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec