Class: DockerComposeDeploy::Configuration
- Inherits:
-
Object
- Object
- DockerComposeDeploy::Configuration
- Defined in:
- lib/docker_compose_deploy.rb
Instance Method Summary collapse
- #connection ⇒ Object
- #domains ⇒ Object
- #ignore_pull_failures ⇒ Object
-
#initialize(environment, yaml) ⇒ Configuration
constructor
A new instance of Configuration.
- #stack? ⇒ Boolean
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
#connection ⇒ Object
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 |
#domains ⇒ Object
30 31 32 |
# File 'lib/docker_compose_deploy.rb', line 30 def domains config_block.fetch("domains", []) end |
#ignore_pull_failures ⇒ Object
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
34 35 36 |
# File 'lib/docker_compose_deploy.rb', line 34 def stack? config_block.fetch("stack", false) end |