zerigo-designate 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,7 +45,14 @@ Capistrano::Configuration.instance(:must_exist).load do
45
45
 
46
46
  def delete_hosts(expired_hosts, zone)
47
47
  zone.hosts.delete_if {|host| !expired_hosts.find {|hostname| hostname == host.hostname}}
48
- zone.hosts.each {|host| p "Deleting expired host: #{host.fqdn}"; host.destroy} rescue puts "Looks like #{host.fqdn} has already been deleted"
48
+ zone.hosts.each do |host|
49
+ p "Deleting expired host: #{host.fqdn}"
50
+ begin
51
+ host.destroy
52
+ rescue
53
+ puts "Looks like #{host.fqdn} has already been deleted"
54
+ end
55
+ end
49
56
  end
50
57
  end
51
58
  end
@@ -1,3 +1,3 @@
1
1
  module Designate
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zerigo-designate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Miller
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-06-20 00:00:00 Z
19
+ date: 2012-06-29 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rest-client