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 +4 -4
- data/doc/_resource_types/ec2.md +8 -0
- data/doc/resource_types.md +9 -0
- data/lib/awspec/stub/ec2.rb +6 -0
- data/lib/awspec/type/ec2.rb +9 -0
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df90524881e64ff3e5ac8bc37f8e5ec072ddc96c
|
4
|
+
data.tar.gz: fabf6bde9a379ebdadffc0f77954ec148e05a73f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b09130c34321068faf6ce68723c542f61c46b3048d8c51976ee523629b538f94a3c7926570b890e42b677983815ca617a2cd6952c47d3b1d141fbc72038219a
|
7
|
+
data.tar.gz: 0c2ad5e40a8c7f674d83a0a213fceadff9eff2e419a3743b80c4d4204c461afab4d550acc152c1174befd198c4d1c9130b16016c20b3185b77a5103321053570
|
data/doc/_resource_types/ec2.md
CHANGED
data/doc/resource_types.md
CHANGED
data/lib/awspec/stub/ec2.rb
CHANGED
data/lib/awspec/type/ec2.rb
CHANGED
@@ -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
|
data/lib/awspec/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|