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

destroy and info command #91

Merged
merged 3 commits into from
Feb 15, 2014
Merged

destroy and info command #91

merged 3 commits into from
Feb 15, 2014

Conversation

PierreFrisch
Copy link

I need 2 new command destroy_image and info_image so I have added them. The info is required to test for an image existence before destroying it or you get an error.

@@ -92,7 +92,7 @@
to_return(:status => 200, :body => fixture("show_droplet"))

stub_request(:get, "https://api.digitalocean.com/images/478?api_key=#{api_key}&client_id=#{client_key}").
to_return(:status => 200, :body => '{"status": "OK", "image": {"id": 478, "name": "NLP Final", "distribution": "Ubuntu"}}', :headers => {})
Copy link
Owner

Choose a reason for hiding this comment

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

Good spot! 👍

@pearkes
Copy link
Collaborator

pearkes commented Feb 15, 2014

Nice, this looks great! Thank you!

Still reminding me it'd be great to add namespacing to tugboat eventually.

  • tugboat image info
  • tugboat image destroy

etc. :)

pearkes added a commit that referenced this pull request Feb 15, 2014
@pearkes pearkes merged commit 77aea12 into petems:master Feb 15, 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.

4 participants