Class: Phase::Config::Environment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Environment.



41
42
43
44
45
# File 'lib/phase/config/deploy.rb', line 41

def initialize(name, options = {})
  @name = name
  @perform_build = options.fetch(:build, true)
  @server_filters = options.fetch(:servers, {})
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



37
38
39
# File 'lib/phase/config/deploy.rb', line 37

def name
  @name
end

#perform_buildObject Also known as: perform_build?

Returns the value of attribute perform_build.



37
38
39
# File 'lib/phase/config/deploy.rb', line 37

def perform_build
  @perform_build
end

#server_filtersObject

Returns the value of attribute server_filters.



37
38
39
# File 'lib/phase/config/deploy.rb', line 37

def server_filters
  @server_filters
end