Class: DockerComposeDeploy::Configuration

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

Instance Method Summary collapse

Constructor Details

#initialize(environment, yaml) ⇒ Configuration

Returns a new instance of Configuration.



17
18
19
20
# File 'lib/docker_compose_deploy.rb', line 17

def initialize(environment, yaml)
  @environment = environment
  @yaml = yaml
end

Instance Method Details

#connectionObject



26
27
28
# File 'lib/docker_compose_deploy.rb', line 26

def connection
  config_block["connection"] || raise("INVALID CONFIG: Environment '#{@environment}' does not specify a connection string in config.yml")
end

#domainsObject



30
31
32
# File 'lib/docker_compose_deploy.rb', line 30

def domains
  config_block.fetch("domains", [])
end

#ignore_pull_failuresObject



22
23
24
# File 'lib/docker_compose_deploy.rb', line 22

def ignore_pull_failures
  config_block.fetch("ignore_pull_failures", false)
end

#stack?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/docker_compose_deploy.rb', line 34

def stack?
  config_block.fetch("stack", false)
end