Class: Silo::Remote::Base
- Inherits:
-
Object
- Object
- Silo::Remote::Base
- Defined in:
- lib/silo/remote/base.rb
Overview
This class represents a standard Git remote attached to the Git repository backing the Silo repository
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of this remote.
-
#url ⇒ String
readonly
The URL of this remote.
Instance Method Summary collapse
-
#initialize(repo, name) ⇒ Base
constructor
Creates a new remote with the specified name.
Constructor Details
#initialize(repo, name) ⇒ Base
Creates a new remote with the specified name
24 25 26 27 |
# File 'lib/silo/remote/base.rb', line 24 def initialize(repo, name) @name = name @repo = repo end |
Instance Attribute Details
#name ⇒ String (readonly)
Returns The name of this remote.
15 16 17 |
# File 'lib/silo/remote/base.rb', line 15 def name @name end |
#url ⇒ String (readonly)
Returns The URL of this remote.
18 19 20 |
# File 'lib/silo/remote/base.rb', line 18 def url @url end |