Skip to content

Commit

Permalink
Merge pull request #78 from alexarana/master
Browse files Browse the repository at this point in the history
Moved --remove-orphans option from 'stop' to 'down' command
  • Loading branch information
augi authored May 22, 2017
2 parents 8ef65ac + efec875 commit 0a3255e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class ComposeDown extends DefaultTask {
extension.setExecSpecWorkingDirectory(e)
e.environment = extension.environment
String[] args = ['stop', '--timeout', extension.dockerComposeStopTimeout.getSeconds()]
if (extension.removeOrphans()) {
args += '--remove-orphans'
}
e.commandLine extension.composeCommand(args)
}
if (extension.removeContainers) {
Expand All @@ -41,6 +38,9 @@ class ComposeDown extends DefaultTask {
if(extension.removeVolumes) {
args += ['--volumes']
}
if (extension.removeOrphans()) {
args += '--remove-orphans'
}
project.exec { ExecSpec e ->
extension.setExecSpecWorkingDirectory(e)
e.environment = extension.environment
Expand Down

0 comments on commit 0a3255e

Please sign in to comment.