Class: VagrantPlugins::AwsDns::Action::AddRecord

Inherits:
Base
  • Object
show all
Defined in:
lib/vagrant-aws-dns/action/add_record.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from VagrantPlugins::AwsDns::Action::Base

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
13
14
# File 'lib/vagrant-aws-dns/action/add_record.rb', line 9

def call(env)
  super env do |record, type, value|
    @aws.add_record(@machine.config.dns.hosted_zone_id, record, type, value)
    @machine.ui.info("Add dns record #{record} pointing to #{value}.")
  end
end