Class: Toys::SourceSpec::Git
Overview
A spec for a source located in a git repository.
Instance Attribute Summary collapse
-
#commit ⇒ String?
readonly
The git ref, or
nilto inherit it from the source doing the loading or fall back to"HEAD". -
#path ⇒ String?
readonly
The path within the repo, or
nilfor the root of the repo. -
#remote ⇒ String?
readonly
The git repo URL, or
nilto inherit it from the source doing the loading. -
#update ⇒ boolean, Integer
readonly
Whether, and when, to force-fetch from the remote.
Attributes inherited from Base
#context_directory, #source_name
Method Summary
Methods inherited from Base
Instance Attribute Details
#commit ⇒ String? (readonly)
The git ref, or nil to inherit it from the source doing the loading
or fall back to "HEAD".
343 344 345 |
# File 'lib/toys/source_spec.rb', line 343 def commit @commit end |
#path ⇒ String? (readonly)
The path within the repo, or nil for the root of the repo.
335 336 337 |
# File 'lib/toys/source_spec.rb', line 335 def path @path end |
#remote ⇒ String? (readonly)
The git repo URL, or nil to inherit it from the source doing the
loading.
328 329 330 |
# File 'lib/toys/source_spec.rb', line 328 def remote @remote end |
#update ⇒ boolean, Integer (readonly)
Whether, and when, to force-fetch from the remote.
350 351 352 |
# File 'lib/toys/source_spec.rb', line 350 def update @update end |