Class: Toys::SourceInfo::Origin::Git

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

Overview

The origin of a source read from a git repository.

Instance Attribute Summary collapse

Instance Attribute Details

#commitString (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.

Returns:

  • (String)


136
137
138
# File 'lib/toys/source_info/origin.rb', line 136

def commit
  @commit
end

#pathString (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.

Returns:

  • (String)


145
146
147
# File 'lib/toys/source_info/origin.rb', line 145

def path
  @path
end

#remoteString (readonly)

The git remote that the content was fetched from.

Returns:

  • (String)


128
129
130
# File 'lib/toys/source_info/origin.rb', line 128

def remote
  @remote
end