Module: Reviser::Helpers::Git
- Defined in:
- lib/reviser/helpers/git.rb
Instance Method Summary collapse
-
#git_add ⇒ Object
method which allows the user to add something on the repository.
-
#git_commit ⇒ Object
method for displaying a message when the repository is configured.
-
#git_diff ⇒ Object
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.
-
#git_init ⇒ Object
method which initialize a git repository.
- #git_push ⇒ Object
Instance Method Details
#git_add ⇒ Object
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_commit ⇒ Object
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_diff ⇒ Object
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_init ⇒ Object
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_push ⇒ Object
47 48 49 |
# File 'lib/reviser/helpers/git.rb', line 47 def git_push @git.push end |