Class: RemoteFactoryGirl::RemotesConfig
- Inherits:
-
Object
- Object
- RemoteFactoryGirl::RemotesConfig
- Defined in:
- lib/remote_factory_girl/remotes_config.rb
Constant Summary collapse
- DEFAULT_REMOTE_NAME =
:default
Instance Attribute Summary collapse
- #current_remote ⇒ Object
-
#remotes ⇒ Object
(also: #to_hash)
Returns the value of attribute remotes.
Instance Method Summary collapse
- #default_remote_name ⇒ Object
-
#initialize ⇒ RemotesConfig
constructor
A new instance of RemotesConfig.
- #reset(config = Config.new) ⇒ Object
Constructor Details
#initialize ⇒ RemotesConfig
Returns a new instance of RemotesConfig.
13 14 15 |
# File 'lib/remote_factory_girl/remotes_config.rb', line 13 def initialize @remotes = {} end |
Instance Attribute Details
#current_remote ⇒ Object
17 18 19 |
# File 'lib/remote_factory_girl/remotes_config.rb', line 17 def current_remote @current_remote || default_remote_name end |
#remotes ⇒ Object Also known as: to_hash
Returns the value of attribute remotes.
7 8 9 |
# File 'lib/remote_factory_girl/remotes_config.rb', line 7 def remotes @remotes end |
Instance Method Details
#default_remote_name ⇒ Object
21 22 23 |
# File 'lib/remote_factory_girl/remotes_config.rb', line 21 def default_remote_name DEFAULT_REMOTE_NAME end |