Class: AvoDeploy::Target

Inherits:
Object
  • Object
show all
Defined in:
lib/avodeploy/target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, config) ⇒ Target

Initializes the deployment target

Parameters:

  • name (Symbol)

    target name

  • config (Hash)

    target config



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

#configObject (readonly)

Returns the value of attribute config.



23
24
25
# File 'lib/avodeploy/target.rb', line 23

def config
  @config
end

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/avodeploy/target.rb', line 22

def name
  @name
end