Class: RubyYacht::DnsServer::DSL

Inherits:
Object
  • Object
show all
Extended by:
RubyYacht::DSL::Base::ClassMethods
Includes:
RubyYacht::DSL::Base
Defined in:
lib/ruby_yacht/dsl/dns_server.rb

Overview

This class provides a DSL for configuring DNS server options.

You can access this by calling dns_server within RubyYacht::Project::DSL. It will create a RubyYacht::DnsServer.

Instance Method Summary collapse

Methods included from RubyYacht::DSL::Base::ClassMethods

add_attribute, add_boolean, add_generic_attribute, add_list, add_object, add_object_list, all_attributes, copied_attributes, created_type, creates_object, custom_attribute_method, default_values, required_attributes

Methods included from RubyYacht::DSL::Base

#check_required_attributes, #create_object, #initialize, #load_custom_attributes, #run

Instance Method Details

#search_domainObject

:method: search_domain You can call search_domain 'apps.test.com' to add apps.test.com to the list of domains that we automatically search for in the DNS.


33
# File 'lib/ruby_yacht/dsl/dns_server.rb', line 33

add_list :search_domain

#serverObject

:method: server You can call server '1.2.3.4' to add 1.2.3.4 to the project's list of DNS servers.


27
# File 'lib/ruby_yacht/dsl/dns_server.rb', line 27

add_list :server