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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/skyed.rb +1 -1
  3. data/lib/skyed/aws.rb +8 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b4c7edec9afbcff17635e187a596fbe520da43b
4
- data.tar.gz: 81554b47a088fbabb486b43412f1f18cfe390a6e
3
+ metadata.gz: 17ac8d355d3efd13bc581a90430f8643fd0d5c54
4
+ data.tar.gz: b3dd681d2cf447f7e1f264b0a7305bfd59714bcf
5
5
  SHA512:
6
- metadata.gz: cf6170b754fb52439b847353c2fa6a703a5c33fdb6b1e2d3bb6cb25ee41e161694232d2c38928e2cd0e5e184bcc350dc6221bfe049f3bbdde05707a5e9b1e891
7
- data.tar.gz: af4744a0223f3f2af751d3e8c52ec8f096f3f594bb20e8ccfa6681daaab4516caba13bcba40c472bd72609ad85395f9689a0fe62b819a95ea3d75a64077eeaa9
6
+ metadata.gz: 3f3559b79e4635a319d368115c4b33f266bd917a726eec3e2192698eed463afec17c9ef9016e89248b74737bb77e174e99d2030ebfc6cf96e9f7a5cdcbe6b226
7
+ data.tar.gz: 5e5b2df61c58b7e0a9d16864fd61f6f2f6820e6f0816ff8195a469217785b2ac71772afdcc6aeb5456ddb7972eb9421aa55958a0c9c531395e6d8d3c3b2a7b3e
@@ -13,5 +13,5 @@ require 'skyed/settings'
13
13
 
14
14
  # Skyed is a set of tools for cloud computing
15
15
  module Skyed
16
- VERSION = '0.1.14'
16
+ VERSION = '0.1.15'
17
17
  end
@@ -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.14
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: 2015-12-16 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git