ecs_compose 0.1.0.pre31 → 0.1.0.pre32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ecs_compose/task_definition.rb +7 -1
- 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: 0ea4ce6a1f81b21c2459bcec1b7624f6d345b86b
|
4
|
+
data.tar.gz: 3d7b1b8e276d1b6537aa7cb01bcdcf31e84b141b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c677855fe227cc25f44f8db95c88a58857078f3ef4eb5e8b5ee8de86527e92ca214798ef479498e11f4089497374bd5faf37b710f77e5169ad6c5d107af2175
|
7
|
+
data.tar.gz: 8c11f3bdee62563fe1931b2b550dfeb5c166615e4f34a4411b2cd27a44cb023e56a5bcdfe5319e313c0383303bf58ef4f17f196043b61f567bc04a18082a6698
|
@@ -36,7 +36,7 @@ module EcsCompose
|
|
36
36
|
new = register_new.fetch("taskDefinition")
|
37
37
|
|
38
38
|
# Decide whether we can re-use the existing registration.
|
39
|
-
if existing && Compare.task_definitions_match?(existing, new)
|
39
|
+
if existing && Compare.task_definitions_match?(existing, new) && !force?
|
40
40
|
rev1 = "#{existing.fetch('family')}:#{existing.fetch('revision')}"
|
41
41
|
rev2 = "#{new.fetch('family')}:#{new.fetch('revision')}"
|
42
42
|
puts "Running copy of #{rev1} looks good; not updating to #{rev2}."
|
@@ -136,5 +136,11 @@ EOD
|
|
136
136
|
def json_generator
|
137
137
|
@json_generator ||= JsonGenerator.new(name, yaml)
|
138
138
|
end
|
139
|
+
|
140
|
+
# Should we force a deploy?
|
141
|
+
def force?
|
142
|
+
# ENV[...] may return nil, but we're OK with that.
|
143
|
+
["1", "true", "yes"].include?(ENV['ECS_COMPOSE_FORCE_DEPLOY'])
|
144
|
+
end
|
139
145
|
end
|
140
146
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecs_compose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Kidd
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|