1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #1812 from stormsilver/remove_default_zerigo_ttl

[Zerigo|DNS] Remove default 3600 TTL
This commit is contained in:
Wesley Beary 2013-05-14 15:12:32 -07:00
commit e54c1a691f
9 changed files with 5 additions and 9 deletions

View file

@ -23,7 +23,6 @@ module Fog
attribute :set_identifier,:aliases => ['SetIdentifier']
def initialize(attributes={})
self.ttl ||= 3600
super
end
@ -38,6 +37,7 @@ module Fog
end
def save
self.ttl ||= 3600
options = attributes_to_options('CREATE')
data = service.change_resource_record_sets(zone.id, [options]).body
merge_attributes(data)

View file

@ -19,7 +19,6 @@ module Fog
attribute :minimum
def initialize(attributes = {})
self.ttl ||= 3600
super(attributes)
end
@ -51,6 +50,7 @@ module Fog
end
def save
self.ttl ||= 3600
requires :domain, :ttl
options = attributes.dup
options[:name] = options.delete(:domain)

View file

@ -21,7 +21,6 @@ module Fog
attribute :priority, :aliases => "prio"
def initialize(attributes={})
self.ttl ||= 3600
super
end

View file

@ -25,7 +25,6 @@ module Fog
attribute :value, :aliases => "data"
def initialize(attributes={})
self.ttl ||= 1800
super
end
@ -39,6 +38,7 @@ module Fog
end
def save
self.ttl ||= 1800
requires :name, :type, :value, :ttl
options = {}
options[:ttl] = ttl if ttl

View file

@ -17,7 +17,6 @@ module Fog
attribute :type, :aliases => 'zone_type'
def initialize(attributes={})
self.ttl ||= 3600
super
end
@ -47,6 +46,7 @@ module Fog
end
def save
self.ttl ||= 3600
requires :domain, :email, :ttl
data = service.post_zone(email, ttl, domain).body['data']
merge_attributes(data)

View file

@ -23,7 +23,6 @@ module Fog
# "PORT":0,
def initialize(attributes={})
self.ttl ||= 3600
super
end

View file

@ -24,7 +24,6 @@ module Fog
def initialize(attributes={})
self.type ||= 'master'
self.ttl ||= 3600
super
end

View file

@ -23,7 +23,6 @@ module Fog
attribute :zone_id, :aliases => 'zone-id'
def initialize(attributes={})
self.ttl ||= 3600
super
end

View file

@ -27,7 +27,6 @@ module Fog
def initialize(attributes={})
self.type ||= 'pri_sec'
self.ttl ||= 3600
super
end
@ -57,6 +56,7 @@ module Fog
end
def save
self.ttl ||= 3600
requires :domain, :type, :ttl
options = {}
# * options<~Hash> - optional paramaters