Skip to content

Commit

Permalink
Merge pull request #72 from palantir/feature/remove-volumes-when-usin…
Browse files Browse the repository at this point in the history
…g-down

Add volumes flag to down
  • Loading branch information
hpryce committed May 31, 2016
2 parents d693c4c + bb96eda commit 216ed63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void up() throws IOException, InterruptedException {

@Override
public void down() throws IOException, InterruptedException {
executeDockerComposeCommand(swallowingDownCommandDoesNotExist(), "down");
executeDockerComposeCommand(swallowingDownCommandDoesNotExist(), "down", "--volumes");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ public void when_down_fails_for_a_reason_other_than_the_command_not_being_presen
compose.down();
}

@Test
public void when_down_exists_if_uses_the_remove_volumes_flag() throws IOException, InterruptedException {
compose.down();
verify(executor).execute("down", "--volumes");
}

@Test
public void calling_ports_parses_the_ps_output() throws IOException, InterruptedException {
Ports ports = compose.ports("db");
Expand Down

0 comments on commit 216ed63

Please sign in to comment.