Class Grit::Submodule
In: lib/grit/submodule.rb
Parent: Object

Methods

Attributes

id  [R] 
mode  [R] 
name  [R] 

Public Class methods

The configuration information for the given repo

  +repo+ is the Repo
  +ref+ is the committish (defaults to 'master')

Returns a Hash of { <path:String> => { ‘url’ => <url:String>, ‘id’ => <id:String> } } Returns {} if no .gitmodules file was found

Create a Submodule containing just the specified attributes

  +repo+ is the Repo
  +atts+ is a Hash of instance variable data

Returns Grit::Submodule (unbaked)

Public Instance methods

Initializer for Submodule.create

  +repo+ is the Repo
  +atts+ is a Hash of instance variable data

Returns Grit::Submodule

Pretty object inspection

The url of this submodule

  +ref+ is the committish that should be used to look up the url

Returns String

[Validate]