Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
merqlove committed Aug 3, 2016
2 parents b253660 + 67c62ff commit bc99e33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -91,8 +91,9 @@ If you want to set keys without environment, than set it via options when you ru
### How-To

##### Tutorials:
- [Longren Tutorial](https://longren.io/automate-making-snapshots-of-your-digitalocean-droplets/)
- [Arun Kumar Tutorial](http://www.ashout.com/automate-digital-ocean-droplet-snaphot/)
- [Automate Taking Snapshots of Your DigitalOcean Droplets with DOSnapshot
, Tyler Longren](https://longren.io/automate-making-snapshots-of-your-digitalocean-droplets/)
- [How to Automate Taking Digital Ocean Droplet Snaphot with DoSnapShot Script, Arun Kumar](http://www.ashout.com/automate-digital-ocean-droplet-snaphot/)

Here we `keeping` only 5 **latest** snapshots and cleanup older after new one is created. If creation of snapshots failed no one will be deleted. By default we keeping `10` droplets.

Expand Down Expand Up @@ -194,7 +195,6 @@ Support this project and others by [merqlove](https://gratipay.com/~merqlove/) v
## Dependencies:

- [Thor](https://github.com/erikhuda/thor) for CLI.
- [Digitalocean](https://github.com/scottmotte/digitalocean) for API V1 requests.
- [Barge](https://github.com/blom/barge) for API V2 requests.
- [Pony](https://github.com/benprew/pony) for mail notifications.

Expand Down
2 changes: 1 addition & 1 deletion lib/do_snapshot/adapter/digitalocean_v2.rb
Expand Up @@ -95,7 +95,7 @@ def cleanup_snapshots(instance, size)
def check_keys
logger.debug 'Checking DigitalOcean Access Token.'
%w( DIGITAL_OCEAN_ACCESS_TOKEN ).each do |key|
fail DoSnapshot::NoTokenError, "You must have #{key} in environment or set it via options." if ENV[key].blank?
fail DoSnapshot::NoTokenError, "You must have #{key} in environment or set it via options." if ENV[key].nil? || ENV[key].empty?
end
end

Expand Down

0 comments on commit bc99e33

Please sign in to comment.