Comparing version 0.1.8 to 0.1.9
@@ -174,4 +174,3 @@ var cp = require('child_process'); | ||
'overcast digitalocean snapshot [instance] [snapshot-name]', | ||
' Creates a named snapshot of a droplet. Returns a snapshot object,'.grey, | ||
' which you can use to create a new instance. This may cause a reboot.'.grey, | ||
' Creates a named snapshot of a droplet. This process will reboot the instance.'.grey, | ||
'', | ||
@@ -178,0 +177,0 @@ ' Example:'.grey, |
@@ -215,4 +215,3 @@ var fs = require('fs'); | ||
function handleCreateResponse(droplet) { | ||
utils.grey('Creating droplet ' + droplet.id + ' on DigitalOcean.'); | ||
utils.grey('This could take a minute, please wait...'); | ||
utils.grey('Creating droplet ' + droplet.id + ' on DigitalOcean, please wait...'); | ||
waitForEventToFinish(droplet.event_id, function () { | ||
@@ -250,12 +249,13 @@ utils.success('Droplet created!'); | ||
exports.snapshot = function (instance, name, callback) { | ||
// GET https://api.digitalocean.com/droplets/[droplet_id]/snapshot/?name=[snapshot_name] | ||
utils.grey('Creating new snapshot "' + name + '" of instance "' + instance.name + '", please wait...'); | ||
exports.eventedRequest({ | ||
endpoint: 'droplets/' + instance.digitalocean.id + '/snapshot', | ||
query: { name: name }, | ||
callback: function (eventResult) { | ||
console.log(eventResult); | ||
utils.success('Snapshot "' + name + '" created.'); | ||
(callback || _.noop)(); | ||
} | ||
exports.shutdown(instance, function () { | ||
// GET https://api.digitalocean.com/droplets/[droplet_id]/snapshot/?name=[snapshot_name] | ||
utils.grey('Creating new snapshot "' + name + '" of instance "' + instance.name + '", please wait...'); | ||
exports.eventedRequest({ | ||
endpoint: 'droplets/' + instance.digitalocean.id + '/snapshot', | ||
query: { name: name }, | ||
callback: function (eventResult) { | ||
utils.success('Snapshot "' + name + '" created.'); | ||
(callback || _.noop)(); | ||
} | ||
}); | ||
}); | ||
@@ -262,0 +262,0 @@ }; |
@@ -7,3 +7,3 @@ var fs = require('fs'); | ||
exports.VERSION = '0.1.8'; | ||
exports.VERSION = '0.1.9'; | ||
@@ -10,0 +10,0 @@ exports.clustersCache = null; |
{ | ||
"name": "overcast", | ||
"description": "A terminal-focused cloud management tool.", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"repository": "https://github.com/andrewchilds/overcast.git", | ||
@@ -6,0 +6,0 @@ "author": { |
# Overcast | ||
![Screenshot](http://i.imgur.com/Ak5xp9Y.png) | ||
![Screenshot](http://i.imgur.com/n8IKY6m.png) | ||
@@ -177,4 +177,3 @@ Overcast is a simple terminal-based cloud management tool that was designed to make it easy to spin up and manage clusters of servers in a consistent, scriptable way. Inspired by [Packer.io](http://packer.io). | ||
overcast digitalocean snapshot [instance] [snapshot-name] | ||
Creates a named snapshot of a droplet. Returns a snapshot object, | ||
which you can use to create a new instance. This may cause a reboot. | ||
Creates a named snapshot of a droplet. This process will reboot the instance. | ||
@@ -213,3 +212,3 @@ Example: | ||
``` | ||
Overcast v0.1.8 | ||
Overcast v0.1.9 | ||
@@ -216,0 +215,0 @@ Code repo, issues, pull requests: |
88352
1909
463