awspec 0.85.3 → 0.86.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: 272f2a3057efa08feb5cbdf9a5f008f602caea62
4
- data.tar.gz: '083459a913017de17fbe9f5351c6feaa503b787a'
3
+ metadata.gz: 1d9ac6e4891eae5bfd514aee8f72a6a323b0b5c0
4
+ data.tar.gz: de536803219c6b32193384ad01b82ea0f23a6bfb
5
5
  SHA512:
6
- metadata.gz: bce992f0dde27e54ddc90bf2700a63cafdd23fefbcc4e007477943322ab19a62404e864bad9371ac65a0b1ccfa245abe82538fe660a4dc673010eedd7a1298bc
7
- data.tar.gz: 3060e5b75ce33cee3d9fab8cfbf8f3e47c03d138ac9e2fb7d7a392a7da3c0713f34b86aaf7de67bc64969e4c7d83c8b996614814206d0c57b56f24750a8d1863
6
+ metadata.gz: 385162854f73f06848cca0c82d8530600b95d10b32d5caa81cf3ef2da487f9f164fdbbec5d7aae4f1c47e9bf9ff2db741d4866c978bd38ef692cc7a83f19106e
7
+ data.tar.gz: 1be74de00693e74ce843ee2ff3f83f150d201363c4a3e2cf80018eff794b53e52593a728033eea8586aa7e4d67fccd51d6cc2bb4fdacc69062a9a7e1e57f282c
data/awspec.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_runtime_dependency 'rspec', '~> 3.0'
24
24
  spec.add_runtime_dependency 'rspec-its'
25
25
  spec.add_runtime_dependency 'aws-sdk', '>= 2.2', '< 2.11'
26
- spec.add_runtime_dependency 'awsecrets', '~> 1.12'
26
+ spec.add_runtime_dependency 'awsecrets', '~> 1.14'
27
27
  spec.add_runtime_dependency 'thor'
28
28
  spec.add_runtime_dependency 'activesupport', '~> 4.0'
29
29
  spec.add_runtime_dependency 'term-ansicolor'
@@ -303,7 +303,7 @@ describe cloudformation_stack('my-cloudformation-stack') do
303
303
  end
304
304
  ```
305
305
 
306
- ### its(:stack_id), its(:stack_name), its(:change_set_id), its(:description), its(:parameters), its(:creation_time), its(:last_updated_time), its(:rollback_configuration), its(:stack_status), its(:stack_status_reason), its(:disable_rollback), its(:notification_arns), its(:timeout_in_minutes), its(:capabilities), its(:role_arn)
306
+ ### its(:stack_id), its(:stack_name), its(:change_set_id), its(:description), its(:parameters), its(:creation_time), its(:deletion_time), its(:last_updated_time), its(:rollback_configuration), its(:stack_status), its(:stack_status_reason), its(:disable_rollback), its(:notification_arns), its(:timeout_in_minutes), its(:capabilities), its(:role_arn), its(:enable_termination_protection), its(:parent_id), its(:root_id)
307
307
  ## <a name="cloudfront_distribution">cloudfront_distribution</a>
308
308
 
309
309
  CloudfrontDistribution resource type.
@@ -515,7 +515,7 @@ describe cloudwatch_logs('my-cloudwatch-logs-group') do
515
515
  end
516
516
  ```
517
517
 
518
- ### its(:log_group_name), its(:creation_time), its(:retention_in_days), its(:metric_filter_count), its(:arn), its(:stored_bytes)
518
+ ### its(:log_group_name), its(:creation_time), its(:retention_in_days), its(:metric_filter_count), its(:arn), its(:stored_bytes), its(:kms_key_id)
519
519
  ## <a name="customer_gateway">customer_gateway</a>
520
520
 
521
521
  CustomerGateway resource type.
@@ -2533,7 +2533,7 @@ end
2533
2533
  ```
2534
2534
 
2535
2535
 
2536
- ### its(:customer_gateway_configuration), its(:customer_gateway_id), its(:state), its(:type), its(:vpn_connection_id), its(:vpn_gateway_id), its(:options), its(:routes), its(:vgw_telemetry)
2536
+ ### its(:customer_gateway_configuration), its(:customer_gateway_id), its(:category), its(:state), its(:type), its(:vpn_connection_id), its(:vpn_gateway_id), its(:options), its(:routes), its(:vgw_telemetry)
2537
2537
  ## <a name="vpn_gateway">vpn_gateway</a>
2538
2538
 
2539
2539
  VpnGateway resource type.
@@ -16,8 +16,8 @@ module Awspec::Helper
16
16
  res.task_definition
17
17
  end
18
18
 
19
- def find_ecs_service(service)
20
- res = ecs_client.describe_services(services: [service])
19
+ def find_ecs_service(cluster, service)
20
+ res = ecs_client.describe_services(cluster: cluster, services: [service])
21
21
  res.services.single_resource(service)
22
22
  end
23
23
 
@@ -1,18 +1,23 @@
1
1
  module Awspec::Type
2
2
  class EcsService < ResourceBase
3
+ attr_accessor :cluster
3
4
  def initialize(service)
4
5
  super
5
6
  @display_name = service
6
7
  end
7
8
 
8
9
  def resource_via_client
9
- @resource_via_client ||= find_ecs_service(@display_name)
10
+ @resource_via_client ||= find_ecs_service(cluster, @display_name)
10
11
  end
11
12
 
12
13
  def id
13
14
  @id ||= resource_via_client.service_name if resource_via_client
14
15
  end
15
16
 
17
+ def cluster
18
+ @cluster || 'default'
19
+ end
20
+
16
21
  STATES = %w(ACTIVE DRAINING INACTIVE)
17
22
 
18
23
  STATES.each do |state|
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.85.3'
2
+ VERSION = '0.86.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.85.3
4
+ version: 0.86.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-09-21 00:00:00.000000000 Z
11
+ date: 2017-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '1.12'
67
+ version: '1.14'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '1.12'
74
+ version: '1.14'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: thor
77
77
  requirement: !ruby/object:Gem::Requirement