Class: SpaceArchitect::RepoReference

Inherits:
Data
  • Object
show all
Defined in:
lib/space_architect/repo_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clone_urlObject (readonly)

Returns the value of attribute clone_url

Returns:

  • (Object)

    the current value of clone_url



6
7
8
# File 'lib/space_architect/repo_reference.rb', line 6

def clone_url
  @clone_url
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/space_architect/repo_reference.rb', line 6

def name
  @name
end

#ownerObject (readonly)

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



6
7
8
# File 'lib/space_architect/repo_reference.rb', line 6

def owner
  @owner
end

#providerObject (readonly)

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



6
7
8
# File 'lib/space_architect/repo_reference.rb', line 6

def provider
  @provider
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



6
7
8
# File 'lib/space_architect/repo_reference.rb', line 6

def source
  @source
end

Instance Method Details

#directory_nameObject



11
12
13
# File 'lib/space_architect/repo_reference.rb', line 11

def directory_name
  name
end

#full_nameObject



7
8
9
# File 'lib/space_architect/repo_reference.rb', line 7

def full_name
  "#{provider}/#{owner}/#{name}"
end

#src_path(root) ⇒ Object



15
16
17
# File 'lib/space_architect/repo_reference.rb', line 15

def src_path(root)
  Pathname.new(root).join(provider, owner, name)
end