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.



47
48
49
50
51
# File 'lib/phase/config/deploy.rb', line 47

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.



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

def name
  @name
end

#perform_buildObject 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_filtersObject

Returns the value of attribute server_filters.



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

def server_filters
  @server_filters
end