class DockerApp::Config::DSL

Context for loading user config.rb and model files.

Attributes

_config_options[R]

class Error < Backup::Error; end Server = DockerApp::Server

_config_servers[R]

Public Class Methods

new() click to toggle source
# File lib/docker_app/config/dsl.rb, line 13
def initialize
  @_config_options = {}
  @_config_servers = {}
end

Public Instance Methods

server(server_name, &block) click to toggle source
# File lib/docker_app/config/dsl.rb, line 37
def server(server_name, &block)
  sc = ServerSettings.new
  block.call(sc)
  #sc.instance_eval(&block)
  _config_servers[server_name] = sc
end