Class: Toys::SourceSpec::Git

Inherits:
Base
  • Object
show all
Defined in:
lib/toys/source_spec.rb

Overview

A spec for a source located in a git repository.

Instance Attribute Summary collapse

Attributes inherited from Base

#context_directory, #source_name

Method Summary

Methods inherited from Base

#==, #hash

Instance Attribute Details

#commitString? (readonly)

The git ref, or nil to inherit it from the source doing the loading or fall back to "HEAD".

Returns:

  • (String, nil)


367
368
369
# File 'lib/toys/source_spec.rb', line 367

def commit
  @commit
end

#pathString? (readonly)

The path within the repo, or nil for the root of the repo.

Returns:

  • (String, nil)


359
360
361
# File 'lib/toys/source_spec.rb', line 359

def path
  @path
end

#remoteString? (readonly)

The git repo URL, or nil to inherit it from the source doing the loading.

Returns:

  • (String, nil)


352
353
354
# File 'lib/toys/source_spec.rb', line 352

def remote
  @remote
end

#updateboolean, Integer (readonly)

Whether, and when, to force-fetch from the remote.

Returns:

  • (boolean, Integer)


374
375
376
# File 'lib/toys/source_spec.rb', line 374

def update
  @update
end