Class: AvoDeploy::Target
- Inherits:
-
Object
- Object
- AvoDeploy::Target
- Defined in:
- lib/avodeploy/target.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, config) ⇒ Target
constructor
Initializes the deployment target.
Constructor Details
#initialize(name, config) ⇒ Target
Initializes the deployment target
29 30 31 32 33 |
# File 'lib/avodeploy/target.rb', line 29 def initialize(name, config) @name = name @config = default_config.merge(config) @config[:name] = name end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
23 24 25 |
# File 'lib/avodeploy/target.rb', line 23 def config @config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/avodeploy/target.rb', line 22 def name @name end |