Class: PgBundle::GithubSource

Inherits:
GitSource show all
Defined in:
lib/pgbundle/github_source.rb

Overview

The GithubSource class defines a Github Source

Instance Attribute Summary collapse

Attributes inherited from BaseSource

#path

Instance Method Summary collapse

Methods inherited from GitSource

#clean, #load

Methods inherited from BaseSource

#clean, #load

Constructor Details

#initialize(path, branch = 'master') ⇒ GithubSource

Returns a new instance of GithubSource.



7
8
9
10
11
# File 'lib/pgbundle/github_source.rb', line 7

def initialize(path, branch = 'master')
  branch = branch || 'master'
  path = "[email protected]:#{path}.git"
  super(path, branch)
end

Instance Attribute Details

#branchObject (readonly)

Returns the value of attribute branch.



5
6
7
# File 'lib/pgbundle/github_source.rb', line 5

def branch
  @branch
end