Module: PuppetBind::Provider::NsUpdate
- Defined in:
- lib/puppet_bind/provider/nsupdate.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
- #exists? ⇒ Boolean
- #flush ⇒ Object
- #ttl ⇒ Object
- #ttl=(ttl) ⇒ Object
Instance Method Details
#create ⇒ Object
16 17 18 19 20 |
# File 'lib/puppet_bind/provider/nsupdate.rb', line 16 def create update do |file| accio(file) end end |
#destroy ⇒ Object
22 23 24 25 26 |
# File 'lib/puppet_bind/provider/nsupdate.rb', line 22 def destroy update do |file| destructo(file) end end |
#exists? ⇒ Boolean
12 13 14 |
# File 'lib/puppet_bind/provider/nsupdate.rb', line 12 def exists? !(query.empty?) end |
#flush ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/puppet_bind/provider/nsupdate.rb', line 28 def flush return if @properties.empty? update do |file| accio(file) destructo(file) end end |
#ttl ⇒ Object
36 37 38 |
# File 'lib/puppet_bind/provider/nsupdate.rb', line 36 def ttl query.first[:ttl] end |
#ttl=(ttl) ⇒ Object
40 41 42 |
# File 'lib/puppet_bind/provider/nsupdate.rb', line 40 def ttl=(ttl) @properties[:ttl] = ttl end |