Class: Monolith::Remote

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/monolith/remote.rb

Instance Method Summary collapse

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

#addObject



13
14
15
# File 'lib/monolith/remote.rb', line 13

def add
  run("remote add #{name} #{path}")
end

#removeObject



17
18
19
# File 'lib/monolith/remote.rb', line 17

def remove
  run("remote remove #{name}")
end