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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39fff634873e0911b7f8276cc9be5385546761ec
4
- data.tar.gz: dc4696d92250e4fecef37a4fea093c26d7890374
3
+ metadata.gz: 0ea4ce6a1f81b21c2459bcec1b7624f6d345b86b
4
+ data.tar.gz: 3d7b1b8e276d1b6537aa7cb01bcdcf31e84b141b
5
5
  SHA512:
6
- metadata.gz: 874d19b17a04360ec9f9cf8669299868795c68a2ba6bb9f1c81b58fc7b842bd20d6ce2697e13f17576660c266bca40fd7fe50a4fc17f4b6791f74f8b934dac8d
7
- data.tar.gz: a89d193460111fd6f9eb96a5bb20bb929987a8b4256e11c4f04862b1e8616ac8af19ffd8a00de97364ab1750644871f109e4a7bab7887d1340d173596c7906f4
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.pre31
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-02-19 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt