Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return code validation #62

Merged
merged 4 commits into from Feb 8, 2014
Merged

Conversation

jcrobak
Copy link

@jcrobak jcrobak commented Feb 6, 2014

Should address #49 and #52

Joe Crobak added 4 commits February 6, 2014 15:41
Before issuing any commands that talk to the local docker daemon,
make sure it is running (since its service starts in the background).
Move docker_cmd and execute_cmd into the helper mixin to remove
some repeated code.
Update all call sites to use the failing version of docker_cmd.
`docker rmi` defaults to `latest` if no tag is specified. But if you
have a tagged image, there might not be a latest, in which case you
must qualify the image with a tag name.
@jayofdoom
Copy link
Contributor

This is great. LGTM

docker_cmd("rmi #{new_resource.image_name}")
image_name = new_resource.image_name
image_name = "#{image_name}:#{new_resource.tag}" if new_resource.tag
docker_cmd!("rmi #{image_name}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! Thanks!

@bflad
Copy link
Contributor

bflad commented Feb 8, 2014

This is super awesome! Thanks for the enhancements and bugfixes. Will merge and release in 0.30.0

bflad added a commit that referenced this pull request Feb 8, 2014
@bflad bflad merged commit 9c587b7 into sous-chefs:master Feb 8, 2014
bflad added a commit that referenced this pull request Feb 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants