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





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

def initialize(location)
  @repo = Repo.new(location)
  @config = Config.new(repo)
  @status = Status.new(repo)
  @branches = Branches.new(repo)
end

Instance Attribute Details

#branchesObject (readonly)

Returns the value of attribute branches.



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

def branches
  @branches
end

#configObject (readonly)

Returns the value of attribute config.



14
15
16
# File 'lib/gitit/git.rb', line 14

def config
  @config
end

#repoObject (readonly)

Returns the value of attribute repo.



13
14
15
# File 'lib/gitit/git.rb', line 13

def repo
  @repo
end

#statusObject (readonly)

Returns the value of attribute status.



15
16
17
# File 'lib/gitit/git.rb', line 15

def status
  @status
end