Class: Hugo::Cloud

Inherits:
Object
  • Object
show all
Defined in:
lib/hugo/cloud_zerigo_dns.rb

Instance Method Summary collapse

Instance Method Details

#dns(hostname, &block) ⇒ Object



5
6
7
8
9
10
# File 'lib/hugo/cloud_zerigo_dns.rb', line 5

def dns(hostname, &block)
  dns_info = Hugo::Dns.instance
  dns_info.hostname hostname
  dns_info.instance_eval(&block) if block_given? 
  dns_info.deploy
end