Class: PgBundle::GithubSource
- Inherits:
-
GitSource
- Object
- BaseSource
- GitSource
- PgBundle::GithubSource
- Defined in:
- lib/pgbundle/github_source.rb
Overview
The GithubSource class defines a Github Source
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
Attributes inherited from BaseSource
Instance Method Summary collapse
-
#initialize(path, branch = 'master') ⇒ GithubSource
constructor
A new instance of GithubSource.
Methods inherited from GitSource
Methods inherited from BaseSource
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
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
5 6 7 |
# File 'lib/pgbundle/github_source.rb', line 5 def branch @branch end |