Module: DockerComposeDeploy

Defined in:
lib/docker_compose_deploy.rb,
lib/docker_compose_deploy/cli.rb,
lib/docker_compose_deploy/version.rb,
lib/docker_compose_deploy/util/color.rb,
lib/docker_compose_deploy/util/shell.rb,
lib/docker_compose_deploy/actions/hosts.rb,
lib/docker_compose_deploy/actions/image.rb,
lib/docker_compose_deploy/actions/backup.rb,
lib/docker_compose_deploy/actions/server.rb,
lib/docker_compose_deploy/actions/skeleton.rb,
lib/docker_compose_deploy/actions/deployment.rb,
lib/docker_compose_deploy/actions/docker_compose/file.rb

Defined Under Namespace

Modules: Actions, Util Classes: CLI, Configuration

Constant Summary collapse

VERSION =
"1.3.0"

Class Method Summary collapse

Class Method Details

.configObject



6
7
8
# File 'lib/docker_compose_deploy.rb', line 6

def config
  @config || raise("Not configured")
end

.configure!(environment) ⇒ Object



10
11
12
13
# File 'lib/docker_compose_deploy.rb', line 10

def configure!(environment)
  yaml = YAML.load(File.read("./config.yml"))
  @config = Configuration.new(environment, yaml)
end