Class: Phase::Config::Deploy
- Inherits:
-
Object
- Object
- Phase::Config::Deploy
- Defined in:
- lib/phase/config/deploy.rb
Instance Attribute Summary collapse
-
#asset_bucket ⇒ String
The cloud storage bucket (“directory”) for storing compiled assets.
-
#docker_repository ⇒ String
The compact or fully-qualified address of the Docker repository.
-
#environments ⇒ Array<Environment>
readonly
The configured deployment environments.
-
#version_lockfile ⇒ String
The path (relative to Phasefile) to the version lockfile (default “VERSION”).
Instance Method Summary collapse
-
#environment(name, options = {}) ⇒ Environment
Adds a new deployment environment.
-
#initialize ⇒ Deploy
constructor
A new instance of Deploy.
Constructor Details
#initialize ⇒ Deploy
Returns a new instance of Deploy.
28 29 30 31 |
# File 'lib/phase/config/deploy.rb', line 28 def initialize @environments = [] @version_lockfile = "VERSION" end |
Instance Attribute Details
#asset_bucket ⇒ String
Returns the cloud storage bucket (“directory”) for storing compiled assets.
25 26 27 |
# File 'lib/phase/config/deploy.rb', line 25 def asset_bucket @asset_bucket end |
#docker_repository ⇒ String
Returns 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 |
#environments ⇒ Array<Environment> (readonly)
Returns the configured deployment environments.
6 7 8 |
# File 'lib/phase/config/deploy.rb', line 6 def environments @environments end |
#version_lockfile ⇒ String
Returns the path (relative to Phasefile) to the version lockfile (default “VERSION”).
19 20 21 |
# File 'lib/phase/config/deploy.rb', line 19 def version_lockfile @version_lockfile end |
Instance Method Details
#environment(name, options = {}) ⇒ Environment
Adds a new deployment environment.
35 36 37 |
# File 'lib/phase/config/deploy.rb', line 35 def environment(name, = {}) @environments << Environment.new(name, ) end |