Module: Reviser::Helpers::Git

Defined in:
lib/reviser/helpers/git.rb

Instance Method Summary collapse

Instance Method Details

#git_addObject

method which allows the user to add something on the repository



38
39
40
# File 'lib/reviser/helpers/git.rb', line 38

def git_add
  @git.add(:all=>true)
end

#git_commitObject

method for displaying a message when the repository is configured



43
44
45
# File 'lib/reviser/helpers/git.rb', line 43

def git_commit
  @git.commit_all('initialization of git repertory')    
end

#git_diffObject

method which allows the user to see the differences between two last commits I have to know the current commit and the last but how ? and do a diff between these 2 commits.



54
55
56
# File 'lib/reviser/helpers/git.rb', line 54

def git_diff

end

#git_initObject

method which initialize a git repository



33
34
35
# File 'lib/reviser/helpers/git.rb', line 33

def git_init
  @git = ::Git.init
end

#git_pushObject



47
48
49
# File 'lib/reviser/helpers/git.rb', line 47

def git_push
  @git.push
end