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)


343
344
345
# File 'lib/toys/source_spec.rb', line 343

def commit
  @commit
end

#pathString? (readonly)

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

Returns:

  • (String, nil)


335
336
337
# File 'lib/toys/source_spec.rb', line 335

def path
  @path
end

#remoteString? (readonly)

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

Returns:

  • (String, nil)


328
329
330
# File 'lib/toys/source_spec.rb', line 328

def remote
  @remote
end

#updateboolean, Integer (readonly)

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

Returns:

  • (boolean, Integer)


350
351
352
# File 'lib/toys/source_spec.rb', line 350

def update
  @update
end