Class: Monolith::Remote
- Inherits:
-
Object
- Object
- Monolith::Remote
- Extended by:
- Forwardable
- Defined in:
- lib/monolith/remote.rb
Instance Method Summary collapse
- #add ⇒ Object
-
#initialize(repo, remote) ⇒ Remote
constructor
A new instance of Remote.
- #remove ⇒ Object
Constructor Details
#initialize(repo, remote) ⇒ Remote
Returns a new instance of Remote.
8 9 10 11 |
# File 'lib/monolith/remote.rb', line 8 def initialize(repo, remote) @repo = repo @remote = remote end |
Instance Method Details
#add ⇒ Object
13 14 15 |
# File 'lib/monolith/remote.rb', line 13 def add run("remote add #{name} #{path}") end |
#remove ⇒ Object
17 18 19 |
# File 'lib/monolith/remote.rb', line 17 def remove run("remote remove #{name}") end |