Class: Heroploy::Config::RemoteConfig
- Inherits:
-
Object
- Object
- Heroploy::Config::RemoteConfig
- Defined in:
- lib/heroploy/config/remote_config.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
Returns the value of attribute files.
-
#name ⇒ Object
Returns the value of attribute name.
-
#repository ⇒ Object
Returns the value of attribute repository.
Instance Method Summary collapse
-
#initialize(name, attrs = {}) ⇒ RemoteConfig
constructor
A new instance of RemoteConfig.
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
#files ⇒ Object
Returns the value of attribute files.
6 7 8 |
# File 'lib/heroploy/config/remote_config.rb', line 6 def files @files end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/heroploy/config/remote_config.rb', line 4 def name @name end |
#repository ⇒ Object
Returns the value of attribute repository.
5 6 7 |
# File 'lib/heroploy/config/remote_config.rb', line 5 def repository @repository end |