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 +4 -4
- data/broadside.gemspec +1 -1
- data/lib/broadside/deploy/ecs.rb +7 -5
- data/lib/broadside/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a7e66a77d663ba0c323dd16426c89dc4b3089c3
|
4
|
+
data.tar.gz: 53ba3d49f54b75cb733f13684be64a85abe64e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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'
|
data/lib/broadside/deploy/ecs.rb
CHANGED
@@ -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
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
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
|
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)
|
data/lib/broadside/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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:
|
159
|
+
version: 1.3.1
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
162
|
rubygems_version: 2.2.3
|