broadside 3.1.2 → 3.1.3

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: b4d6afe2b08d555eaa1aa27288f29cfcdfe3f5b3
4
- data.tar.gz: d951f0bef912f754b4660679c74dba999ba01cf3
3
+ metadata.gz: fc7c5e27460dcaa89e814ebd4d4ed182d0621e55
4
+ data.tar.gz: e1854045b97ca7b25eb17efb8fe8ce3b3cfc21f5
5
5
  SHA512:
6
- metadata.gz: 6f36a913c39411d76e900e02eab5661e2a30a95859128e5435fad0f37612d44229725734129c777a52aa2f681791f546e1c488d0fefe7efdd6544022ebd80cc8
7
- data.tar.gz: f98e971bc0c6d17b8c7aa7a57db929a9ebf95e7cea1e96da109794ca57158623c0b1fc884e79a8470c2e6c06b28cf539d5a6be915083c1d423f333a115cf4d47
6
+ metadata.gz: 4a5ceee9eca2a326c375b1cfed70dfbe28d5ad2704c0ba6433ee2a6d819eb1394a6242bce1003f6005ec29f5a270d0bb450d61e06846094441afe516de2ecff5
7
+ data.tar.gz: 65dced59ea804ea74bf75b906978d5692bbc820f426c327d3182ac7bbe5d3fb4b5cd1d80f6341865570b6382966b1af1d9dfe457ee7d9663013589069ef37212
@@ -1,3 +1,6 @@
1
+ # 3.1.3
2
+ -- Better error messaging when trying to bash/ssh/etc to an instance_index that doesn't exist
3
+
1
4
  # 3.1.2
2
5
  -- Don't instantiate AWS Credentials until necessary
3
6
 
@@ -119,7 +119,13 @@ module Broadside
119
119
 
120
120
  def get_running_instance_ip!(target, instance_index = 0)
121
121
  EcsManager.check_service_and_task_definition_state!(target)
122
- EcsManager.get_running_instance_ips!(target.cluster, target.family).fetch(instance_index)
122
+ running_instances = EcsManager.get_running_instance_ips!(target.cluster, target.family)
123
+
124
+ begin
125
+ running_instances.fetch(instance_index)
126
+ rescue IndexError
127
+ raise Error, "There are only #{running_instances.size} instances; index #{instance_index} does not exist"
128
+ end
123
129
  end
124
130
 
125
131
  def docker_ps_cmd(family)
@@ -1,3 +1,3 @@
1
1
  module Broadside
2
- VERSION = '3.1.2'.freeze
2
+ VERSION = '3.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: broadside
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Leung
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-19 00:00:00.000000000 Z
12
+ date: 2017-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport