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

Parameters:

  • repo (Repository)

    The Silo repository this remote belongs to

  • name (String)

    The name of the remote



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)

Returns The name of this remote.

Returns:

  • (String)

    The name of this remote



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

def name
  @name
end

#urlString (readonly)

Returns The URL of this remote.

Returns:

  • (String)

    The URL of this remote



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

def url
  @url
end