Class: Gitit::Git

Inherits:
Object
  • Object
show all
Defined in:
lib/gitit/git.rb

Overview



Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location) ⇒ Git





24
25
26
27
28
29
# File 'lib/gitit/git.rb', line 24

def initialize(location)
  @repo = GitRepo.new(location)
  @config = GitConfig.new(repo)
  @status = GitStatus.new(repo)
  @branches = GitBranches.new(repo)
end

Instance Attribute Details

#branchesObject (readonly)

Returns the value of attribute branches.



20
21
22
# File 'lib/gitit/git.rb', line 20

def branches
  @branches
end

#configObject (readonly)

Returns the value of attribute config.



18
19
20
# File 'lib/gitit/git.rb', line 18

def config
  @config
end

#repoObject (readonly)

Returns the value of attribute repo.



17
18
19
# File 'lib/gitit/git.rb', line 17

def repo
  @repo
end

#statusObject (readonly)

Returns the value of attribute status.



19
20
21
# File 'lib/gitit/git.rb', line 19

def status
  @status
end