capistrano-docker_cluster 1.0.3 → 1.0.4

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: 55390e4e8d1ee57c4a14db69dda8e51d6f721ee154a5b735cd1e1a87f86cc78c
4
- data.tar.gz: 540e564423aab6558323368d9ed08402b0f3cde3aa5fae7f2ec5613edff15302
3
+ metadata.gz: 444ef3fec5be6c32f7f8cf8e2ee1c1bfb89a153372c6213ff8b505ba46ee4ba7
4
+ data.tar.gz: e36145b530ac39683213d08aff2111930cc5a7a0a75094dfd2a6a15f6fffa7d7
5
5
  SHA512:
6
- metadata.gz: a96ffed60b967b1194e320098d6b6b49a4db068f311c43b7dcc67a4e1e6eaa10d5df662f5f6af0be03e433bfb7512f138be5282c54058620e600682cf2a1f1eb
7
- data.tar.gz: 49195b18770271a0b0f1d6764ecac14d22d2ad28c0204488ceab7c226b8351f60891dbb6cee163d0348e38317dce45105d4ec71802eacc047f497059debce9ba
6
+ metadata.gz: b9dfeb4a4e6d4b4d97c4a31d5aaf8c1f5e3df7df51e54c3248793d6675bf7616e7c7f3bd25ade0d264db63ef9d076249ac754b609bd3477997c062bab240ef41
7
+ data.tar.gz: ff8957d0fba36b8b62fd65127aae9419943da6ff3208cc80484234f5e1f3ef61b3f261ee62515b31690b5876348c42a75ec7178c8b11a1add69ada8f3ee183fb
data/CHANGE_LOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.4
2
+
3
+ * Add --clear-command argument to clear the docker command buffer.
4
+
1
5
  # 1.0.3
2
6
 
3
7
  * Fix use of `--` to send command arguments.
data/bin/docker-cluster CHANGED
@@ -41,6 +41,9 @@
41
41
  # You can also specify the command by using --. Anything after a double hyphen will be appended to the docker
42
42
  # command line verbatim.
43
43
  #
44
+ # The --clear-command flag can be used to clear the docker run command. Use this if you need to completely override
45
+ # command that has already been set on the command line.
46
+ #
44
47
  # The --force parameter can be used to specify that containers should always be restarted. The default behavior
45
48
  # is to only restart containers if they are not running the specified image.
46
49
  #
@@ -116,6 +119,9 @@ read_arguments() {
116
119
  [[ -z $val ]] && shift && val=$1
117
120
  DOCKER_RUN_COMMAND="$DOCKER_RUN_COMMAND $val"
118
121
  ;;
122
+ --clear-command )
123
+ DOCKER_RUN_COMMAND=""
124
+ ;;
119
125
  --one-off )
120
126
  ONE_OFF_CONTAINER="1"
121
127
  CONTAINER_NAME_PREFIX=""
@@ -150,7 +156,9 @@ read_arguments() {
150
156
  * )
151
157
  DOCKER_RUN_ARGS="$DOCKER_RUN_ARGS $1"
152
158
  esac
153
- shift
159
+ if [ ${#@} -ne 0 ]; then
160
+ shift
161
+ fi
154
162
  done
155
163
  }
156
164
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capistrano
4
4
  module DockerCluster
5
- VERSION = "1.0.3"
5
+ VERSION = "1.0.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-docker_cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Durand