lib/deputy53/route53.rb in deputy53-0.6.4 vs lib/deputy53/route53.rb in deputy53-0.13.0
- old
+ new
@@ -1,6 +1,7 @@
require 'aws-sdk'
+require_relative 'exceptions'
module Deputy53
# A Route53 Client
class Route53 < ContractedObject
Contract None => ::Aws::Route53::Client
@@ -33,10 +34,10 @@
!zones(name).empty?
end
Contract String => String
def id(name)
- raise KeyError unless zone? name
+ raise ZoneNotFoundError unless zone? name
zones(name).first.id
end
end
end