Class: Heroploy::Config::RemoteConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/heroploy/config/remote_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, attrs = {}) ⇒ RemoteConfig

Returns a new instance of RemoteConfig.



8
9
10
11
12
# File 'lib/heroploy/config/remote_config.rb', line 8

def initialize(name, attrs = {})
  @name = name
  @repository = attrs['repository']
  @files = attrs['file'] ? [attrs['file']] : attrs['files']
end

Instance Attribute Details

#filesObject

Returns the value of attribute files.



6
7
8
# File 'lib/heroploy/config/remote_config.rb', line 6

def files
  @files
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/heroploy/config/remote_config.rb', line 4

def name
  @name
end

#repositoryObject

Returns the value of attribute repository.



5
6
7
# File 'lib/heroploy/config/remote_config.rb', line 5

def repository
  @repository
end