Class: Silo::Remote::Base

Inherits:
Object
  • Object
show all
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

Git

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameString (readonly)



15
16
17
# File 'lib/silo/remote/base.rb', line 15

def name
  @name
end

#urlString (readonly)



18
19
20
# File 'lib/silo/remote/base.rb', line 18

def url
  @url
end