skyed 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/skyed.rb +1 -1
- data/lib/skyed/aws.rb +8 -0
- 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: 17ac8d355d3efd13bc581a90430f8643fd0d5c54
|
|
4
|
+
data.tar.gz: b3dd681d2cf447f7e1f264b0a7305bfd59714bcf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f3559b79e4635a319d368115c4b33f266bd917a726eec3e2192698eed463afec17c9ef9016e89248b74737bb77e174e99d2030ebfc6cf96e9f7a5cdcbe6b226
|
|
7
|
+
data.tar.gz: 5e5b2df61c58b7e0a9d16864fd61f6f2f6820e6f0816ff8195a469217785b2ac71772afdcc6aeb5456ddb7972eb9421aa55958a0c9c531395e6d8d3c3b2a7b3e
|
data/lib/skyed.rb
CHANGED
data/lib/skyed/aws.rb
CHANGED
|
@@ -198,9 +198,17 @@ module Skyed
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
class << self
|
|
201
|
+
def instance_by_id(instance_id, opsworks)
|
|
202
|
+
instances_data = opsworks.describe_instances(
|
|
203
|
+
instance_ids: [instance_id])
|
|
204
|
+
instances = instances_data[:instances] unless instances_data.nil?
|
|
205
|
+
instances[0] unless instances.nil?
|
|
206
|
+
end
|
|
207
|
+
|
|
201
208
|
def start_instance(instance_id, opsworks)
|
|
202
209
|
opsworks.start_instance(instance_id: instance_id)
|
|
203
210
|
wait_for_instance_id(instance_id, 'online', opsworks)
|
|
211
|
+
puts instance_by_id(instance_id, opsworks).public_dns
|
|
204
212
|
end
|
|
205
213
|
|
|
206
214
|
def instances_by_status(stack_id, layer_id, status, ow)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: skyed
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ignasi Fosch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: git
|