module Reviser::Helpers::Git

Public Instance Methods

git_add() click to toggle source

method which allows the user to add something on the repository

# File lib/reviser/helpers/git.rb, line 38
def git_add
        @git.add(:all=>true)
end
git_commit() click to toggle source

method for displaying a message when the repository is configured

# File lib/reviser/helpers/git.rb, line 43
def git_commit
        @git.commit_all('initialization of git repertory')           
end
git_diff() click to toggle source

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.

# File lib/reviser/helpers/git.rb, line 54
def git_diff

end
git_init() click to toggle source

method which initialize a git repository

# File lib/reviser/helpers/git.rb, line 33
def git_init
        @git = ::Git.init
end
git_push() click to toggle source
# File lib/reviser/helpers/git.rb, line 47
def git_push
        @git.push
end