Class: Phase::Config::Environment
- Inherits:
-
Object
- Object
- Phase::Config::Environment
- Defined in:
- lib/phase/config/deploy.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#perform_build ⇒ Object
(also: #perform_build?)
Returns the value of attribute perform_build.
-
#server_filters ⇒ Object
Returns the value of attribute server_filters.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Environment
constructor
A new instance of Environment.
Constructor Details
#initialize(name, options = {}) ⇒ Environment
Returns a new instance of Environment.
47 48 49 50 51 |
# File 'lib/phase/config/deploy.rb', line 47 def initialize(name, = {}) @name = name @perform_build = .fetch(:build, true) @server_filters = .fetch(:servers, {}) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
43 44 45 |
# File 'lib/phase/config/deploy.rb', line 43 def name @name end |
#perform_build ⇒ Object Also known as: perform_build?
Returns the value of attribute perform_build.
43 44 45 |
# File 'lib/phase/config/deploy.rb', line 43 def perform_build @perform_build end |
#server_filters ⇒ Object
Returns the value of attribute server_filters.
43 44 45 |
# File 'lib/phase/config/deploy.rb', line 43 def server_filters @server_filters end |