docker-compose 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker/compose/rake_tasks.rb +3 -3
- data/lib/docker/compose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99edfb00478cb048c267ac7b78a19a14a7e40811
|
4
|
+
data.tar.gz: e5666bf343572c23ba8ed610cc982c92743d6bda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa7ba466a9ceead72f37a175b91622a3a666f7fc0334255c3036c63a2d58ee9ef96fe7e6b81ed268ffc106d6e2c6459b7b5fb395681c1928c0ed2821ebe749de
|
7
|
+
data.tar.gz: 0634a093ad16d9203f95959bd338befefc8dabe6a23f90e64c25ccb1b2dabf2b0326c91e99ac19d404d7b24091ae18b70eaff4aadd2b1f4d55d51d726c216fb8
|
@@ -138,11 +138,11 @@ module Docker::Compose
|
|
138
138
|
private def serialize_for_env(v)
|
139
139
|
case v
|
140
140
|
when String
|
141
|
-
|
141
|
+
v
|
142
142
|
when NilClass
|
143
143
|
nil
|
144
144
|
when Array
|
145
|
-
|
145
|
+
JSON.dump(v)
|
146
146
|
else
|
147
147
|
raise ArgumentError, "Can't represent a #{v.class} in the environment"
|
148
148
|
end
|
@@ -151,7 +151,7 @@ module Docker::Compose
|
|
151
151
|
# Print a bash export or unset statement
|
152
152
|
private def print_env(k, v)
|
153
153
|
if v
|
154
|
-
puts format('export %s=%s', k, v)
|
154
|
+
puts format('export %s=%s', k, Shellwords.escape(v))
|
155
155
|
else
|
156
156
|
puts format('unset %s # service not running', k)
|
157
157
|
end
|