awspec 0.38.0 → 0.39.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: 9499d052c8395a806e4f186986c5f4b6ff8e9ff5
4
- data.tar.gz: b121eb4314727b919490ceb8f0f17384f8f38ea1
3
+ metadata.gz: df90524881e64ff3e5ac8bc37f8e5ec072ddc96c
4
+ data.tar.gz: fabf6bde9a379ebdadffc0f77954ec148e05a73f
5
5
  SHA512:
6
- metadata.gz: 635f51f380b8387c06e86c3ff321e94e0f0a4951679adf21047e99d41f8d01229196d78dceb1c0fe2fb01e5af4868aaef7c1979f7c03ddcc3e2924c62cc22642
7
- data.tar.gz: 2c47e474a2a8d1cea044adf05b50a22f2043e23655a3b60c51ee5db601a6bf3c85a4636d77bd953631bd3f2896aac2edd493c7545fb7c543f8ce31ab91db38b5
6
+ metadata.gz: 4b09130c34321068faf6ce68723c542f61c46b3048d8c51976ee523629b538f94a3c7926570b890e42b677983815ca617a2cd6952c47d3b1d141fbc72038219a
7
+ data.tar.gz: 0c2ad5e40a8c7f674d83a0a213fceadff9eff2e419a3743b80c4d4204c461afab4d550acc152c1174befd198c4d1c9130b16016c20b3185b77a5103321053570
@@ -22,6 +22,14 @@ describe ec2('my-ec2') do
22
22
  end
23
23
  ```
24
24
 
25
+ ### have_classiclink
26
+
27
+ ```ruby
28
+ describe ec2('my-ec2-classic') do
29
+ it { should have_classiclink('my-vpc') }
30
+ end
31
+ ```
32
+
25
33
  ### have_ebs
26
34
 
27
35
  ```ruby
@@ -253,6 +253,15 @@ end
253
253
  ```
254
254
 
255
255
 
256
+ ### have_classiclink
257
+
258
+ ```ruby
259
+ describe ec2('my-ec2-classic') do
260
+ it { should have_classiclink('my-vpc') }
261
+ end
262
+ ```
263
+
264
+
256
265
  ### have_ebs
257
266
 
258
267
  ```ruby
@@ -141,6 +141,12 @@ Aws.config[:ec2] = {
141
141
  ]
142
142
  }
143
143
  ]
144
+ },
145
+ describe_classic_link_instances: {
146
+ instances: [
147
+ instance_id: 'my-ec2-classic',
148
+ vpc_id: 'my-vpc'
149
+ ]
144
150
  }
145
151
  }
146
152
  }
@@ -73,5 +73,14 @@ module Awspec::Type
73
73
  return false if status.nil?
74
74
  status.events.count > 0
75
75
  end
76
+
77
+ def has_classiclink?(vpc_id = nil)
78
+ option = {
79
+ instance_ids: [@id]
80
+ }
81
+ option[:filters] = [{ name: 'vpc-id', values: [vpc_id] }] if vpc_id
82
+ ret = ec2_client.describe_classic_link_instances(option)
83
+ return ret.instances.count == 1 if vpc_id
84
+ end
76
85
  end
77
86
  end
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.38.0'
2
+ VERSION = '0.39.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.38.0
4
+ version: 0.39.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-06-06 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec