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 +4 -4
- data/lib/docker/stack/version.rb +1 -1
- data/lib/generators/docker/stack/service.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0306f2e9df1a878d57bd0e9f913069d5de475a4cc851fbc026d3af7a28d547eb
|
4
|
+
data.tar.gz: efe3f59d4a79967fab42ff7e628f192ea3ed73f3b7e1dfae084c2e3f2301cb4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2189a0a84cd75fa15f5e1dff91162114fc2b7c85a2aaad5cbcf62806f7f8492b5d870c2652014e34dee7f09b0e3b4e3778e1b3ee68a6862c459f0f8b324942a7
|
7
|
+
data.tar.gz: 9fb63e495c7cd6d79774d2d9b6325405dc78095b2ed471e9ac223bf584fed00497dc5d5a313761c87d96f8e4069fef5cf09b87bc53950ad2ab11a69a5731c4cd
|
data/lib/docker/stack/version.rb
CHANGED
@@ -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)
|