Class: Toys::SourceInfo::Origin::Git
- Defined in:
- lib/toys/source_info/origin.rb
Overview
The origin of a source read from a git repository.
Instance Attribute Summary collapse
-
#commit ⇒ String
readonly
The git commit that the content was read at.
-
#path ⇒ String
readonly
The path within the repository that was read.
-
#remote ⇒ String
readonly
The git remote that the content was fetched from.
Instance Attribute Details
#commit ⇒ String (readonly)
The git commit that the content was read at. This is the ref that was requested, which could be a SHA, a tag, or a branch name.
136 137 138 |
# File 'lib/toys/source_info/origin.rb', line 136 def commit @commit end |
#path ⇒ String (readonly)
The path within the repository that was read. This is the path of the resolved source itself, and does not descend with child sources. It could be the empty string, meaning the root of the repository.
145 146 147 |
# File 'lib/toys/source_info/origin.rb', line 145 def path @path end |
#remote ⇒ String (readonly)
The git remote that the content was fetched from.
128 129 130 |
# File 'lib/toys/source_info/origin.rb', line 128 def remote @remote end |