Class: Phase::Config::Deploy

Inherits:
Object
  • Object
show all
Defined in:
lib/phase/config/deploy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDeploy

Returns a new instance of Deploy.



16
17
18
# File 'lib/phase/config/deploy.rb', line 16

def initialize
  @environments = []
end

Instance Attribute Details

#docker_repositoryString

Returns the compact or fully-qualified address of the Docker repository.

Examples:

Sample settings

config.deploy.docker_repository = "mycompany/myrepo"
config.deploy.docker_repository = "https://docker.mycompany.com/myrepo"

Returns:

  • (String)

    the compact or fully-qualified address of the Docker repository



13
14
15
# File 'lib/phase/config/deploy.rb', line 13

def docker_repository
  @docker_repository
end

#environmentsArray<Environment> (readonly)

Returns the configured deployment environments.

Returns:

  • (Array<Environment>)

    the configured deployment environments



6
7
8
# File 'lib/phase/config/deploy.rb', line 6

def environments
  @environments
end

Instance Method Details

#environment(name, options = {}) ⇒ Environment

Adds a new deployment environment.

Returns:



22
23
24
# File 'lib/phase/config/deploy.rb', line 22

def environment(name, options = {})
  @environments << Environment.new(name, options)
end