broadside 1.0.1 → 1.0.2.pre

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: c36eb4b660d1e16d9b835c331ebaff2742abb1ae
4
- data.tar.gz: ff6d0878087c50a1101ee5d92cf0dd3c03beb4a2
3
+ metadata.gz: 1a7e66a77d663ba0c323dd16426c89dc4b3089c3
4
+ data.tar.gz: 53ba3d49f54b75cb733f13684be64a85abe64e0f
5
5
  SHA512:
6
- metadata.gz: 59b5f90fe3bcc45c5d2a3e1a0338e478941d7b0504d6cea1ef4890f8bec07ce9054a2e5ac5378737acc68cd67d8ff84ee8d6d3cd5313c9cd2337265d87fb5bdc
7
- data.tar.gz: 5716b529de4a00bc88ed8331e1a5735da1f8d1e3e6ee3742027d14ad6a30be9332365a2f12fc57d682e3b9340ea088cdfbdcae5fc96bbe7e84729ed8006303f9
6
+ metadata.gz: a57560bb27bf80201f45d19249ef6bf7fe8c9ff4a5416c03c15f199d2fd4e0f496c1899d488e2d84f0414c2ce429a0570135cc055023bcf28cc97c886365c597
7
+ data.tar.gz: 4ee6e2d8856efb0fd2b9e45d6b852e9867fe67a271533dcad1ed7f3197a70f3a3dc3034c0a5c6e20f0bf78eb4b716474694a9909392f07841b41cc1e9038607b
data/broadside.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = ['broadside']
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency 'aws-sdk', '~> 2.2.7'
20
+ spec.add_dependency 'aws-sdk', '~> 2.3'
21
21
  spec.add_dependency 'rainbow', '~> 2.1'
22
22
  spec.add_dependency 'gli', '~> 2.13'
23
23
  spec.add_dependency 'dotenv', '>= 0.9.0'
@@ -148,10 +148,11 @@ module Broadside
148
148
  debug "Creating a new task definition..."
149
149
  new_task_def = create_new_task_revision
150
150
 
151
- #TODO instead of first, use select to cover task defs w multiple containers
152
- new_task_def[:container_definitions].first[:environment] = @deploy_config.env_vars
153
- new_task_def[:container_definitions].first[:image] = image_tag
154
- new_task_def[:container_definitions].first[:command] = @deploy_config.command
151
+ container_def = new_task_def[:container_definitions].select { |c| c[:name] == family }.first
152
+ container_def[:environment] = @deploy_config.env_vars
153
+ container_def[:image] = image_tag
154
+ container_def[:command] = @deploy_config.command
155
+
155
156
  new_task_def_id = ecs_client.register_task_definition(new_task_def).task_definition.task_definition_arn
156
157
  debug "Successfully created #{new_task_def_id}"
157
158
  end
@@ -251,7 +252,8 @@ module Broadside
251
252
 
252
253
  def get_task_exit_code(task_id)
253
254
  task = ecs_client.describe_tasks({cluster: config.ecs.cluster, tasks: [task_id]}).tasks.first
254
- task.containers.first.exit_code
255
+ container = task.containers.select { |c| c.name == family }.first
256
+ container.exit_code
255
257
  end
256
258
 
257
259
  def get_running_instance_ips(task_ids = nil)
@@ -1,3 +1,3 @@
1
1
  module Broadside
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2.pre'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: broadside
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Leung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-01 00:00:00.000000000 Z
11
+ date: 2016-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.7
19
+ version: '2.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.7
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rainbow
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -154,9 +154,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - ">"
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
159
+ version: 1.3.1
160
160
  requirements: []
161
161
  rubyforge_project:
162
162
  rubygems_version: 2.2.3