awspec 0.58.0 → 0.59.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: c3334e523c4bda9ac92d034cc18bf4a330435444
4
- data.tar.gz: 6c771f7c68f788d301378ecc2da7b772a7839205
3
+ metadata.gz: 2eef476551d54bd58aff38853d7311e3d62584e5
4
+ data.tar.gz: b3ab086ec14329e11efef9eab2d8e2d32c73c2ac
5
5
  SHA512:
6
- metadata.gz: ea06a002744a85fd3c71544908a4e91f33e873e5453325da1b8dbf24b1ea29146ed43579941ccedb42ed354d01fdfa0ba0629540896defb94882d9de9c992c29
7
- data.tar.gz: 760ca5e05665f1df031840aad1f39be2be5ab35ee8178dedf6da0f66ff59a3f24006bfaf0c5989b0e8be24075785f109153c3186ce040027408e54bf14efb64e
6
+ metadata.gz: 6a29a0c4c3b66c585f9fc93140feca124cda5ede572b9c0bea97ed6283f99df4aaab86b6095441c47de28085a7d3e04a3657d31c41b76c012fb3687c28ead131
7
+ data.tar.gz: da19a2025dec7a0202314b85cbd3c70c2d18a47d01afbcd64bfbdf65a1aee61c3060526dc8a55fb50e20719fb18f21ba17c14b574129cb8c2ab91a32b50dc39b
@@ -21,3 +21,11 @@ describe autoscaling_group('my-auto-scaling-group') do
21
21
  it { should have_elb('my-elb') }
22
22
  end
23
23
  ```
24
+
25
+ ### have_tag
26
+
27
+ ```ruby
28
+ describe autoscaling_group('my-auto-scaling-group') do
29
+ it { should have_tag('Name').value('my-group') }
30
+ end
31
+ ```
@@ -96,6 +96,15 @@ describe autoscaling_group('my-auto-scaling-group') do
96
96
  end
97
97
  ```
98
98
 
99
+
100
+ ### have_tag
101
+
102
+ ```ruby
103
+ describe autoscaling_group('my-auto-scaling-group') do
104
+ it { should have_tag('Name').value('my-group') }
105
+ end
106
+ ```
107
+
99
108
  ### its(:auto_scaling_group_name), its(:auto_scaling_group_arn), its(:launch_configuration_name), its(:min_size), its(:max_size), its(:desired_capacity), its(:default_cooldown), its(:health_check_type), its(:health_check_grace_period), its(:created_time), its(:placement_group), its(:vpc_zone_identifier), its(:status), its(:new_instances_protected_from_scale_in)
100
109
  ## <a name="cloudtrail">cloudtrail</a>
101
110
 
@@ -29,7 +29,13 @@ Aws.config[:autoscaling] = {
29
29
  protected_from_scale_in: false
30
30
  }
31
31
  ],
32
- created_time: Time.local(2015)
32
+ created_time: Time.local(2015),
33
+ tags: [
34
+ {
35
+ key: 'name',
36
+ value: 'my-autoscaling-group'
37
+ }
38
+ ]
33
39
  }
34
40
  ]
35
41
  }
@@ -1,5 +1,8 @@
1
1
  module Awspec::Type
2
2
  class AutoscalingGroup < Base
3
+ aws_resource Aws::AutoScaling::AutoScalingGroup
4
+ tags_allowed
5
+
3
6
  def resource_via_client
4
7
  @resource_via_client ||= find_autoscaling_group(@display_name)
5
8
  end
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.58.0'
2
+ VERSION = '0.59.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.58.0
4
+ version: 0.59.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-11-21 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec