Module: GitHelper
- Included in:
- FlatironScheduler
- Defined in:
- lib/git_helper.rb
Instance Method Summary collapse
- #checkout(branch_name, flags = []) ⇒ Object
- #git_clone(path, name = "") ⇒ Object
- #pull ⇒ Object
- #push ⇒ Object
Instance Method Details
#checkout(branch_name, flags = []) ⇒ Object
6 7 8 |
# File 'lib/git_helper.rb', line 6 def checkout(branch_name, flags = []) system("git checkout #{flags.join(' ')} #{branch_name}") end |
#git_clone(path, name = "") ⇒ Object
2 3 4 |
# File 'lib/git_helper.rb', line 2 def git_clone(path, name = "") system("git clone #{path} #{name}") end |
#pull ⇒ Object
10 11 12 |
# File 'lib/git_helper.rb', line 10 def pull system('git pull') end |
#push ⇒ Object
14 15 16 |
# File 'lib/git_helper.rb', line 14 def push system('git push') end |