docker-stack 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 459b321cbce7417b7e02f01e338162fabf1a1d9109757feff3d6675821ab17d4
4
- data.tar.gz: 15e5832ed64387b472f60e5514171c64d7349daec651423feab004de11287c57
3
+ metadata.gz: 0306f2e9df1a878d57bd0e9f913069d5de475a4cc851fbc026d3af7a28d547eb
4
+ data.tar.gz: efe3f59d4a79967fab42ff7e628f192ea3ed73f3b7e1dfae084c2e3f2301cb4a
5
5
  SHA512:
6
- metadata.gz: 04f40264d833ecfd68f76600b950c814a2c6b4f9e18e07833e5ed14b3226c6e23c155a442dfe08c7cdd33d32e2940c24e039305c7d214e0b603b9dce68a36dc9
7
- data.tar.gz: 8a183d19433fae5718292935d0c57140424aefb15a5e4bf6ec1cd34ad7a9b10a92aae6f955a1a0fb795d73fe2b1713b57f0997aec26f50e9e1b46fcb56487eb2
6
+ metadata.gz: 2189a0a84cd75fa15f5e1dff91162114fc2b7c85a2aaad5cbcf62806f7f8492b5d870c2652014e34dee7f09b0e3b4e3778e1b3ee68a6862c459f0f8b324942a7
7
+ data.tar.gz: 9fb63e495c7cd6d79774d2d9b6325405dc78095b2ed471e9ac223bf584fed00497dc5d5a313761c87d96f8e4069fef5cf09b87bc53950ad2ab11a69a5731c4cd
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Docker
4
4
  module Stack
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
@@ -35,7 +35,7 @@ module Docker
35
35
 
36
36
  def service_from_template(service)
37
37
  source = File.expand_path(find_in_source_paths("services/#{service}.yml.erb"))
38
- context = OpenStruct.new(env: @env, port: Docker::Stack.port_for(service)).instance_eval { binding }
38
+ context = OpenStruct.new(env: @env, port: Docker::Stack.port_for(service, @env)).instance_eval { binding }
39
39
  yaml = Thor::Actions::CapturableERB.new(::File.binread(source), nil, '-', '@output_buffer').tap do |erb|
40
40
  erb.filename = source
41
41
  end.result(context)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-stack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein