module GitHelper

Public Instance Methods

checkout(branch_name, flags = []) click to toggle source
# File lib/git_helper.rb, line 6
def checkout(branch_name, flags = [])
  system("git checkout #{flags.join(' ')} #{branch_name}")
end
git_clone(path, name = "") click to toggle source
# File lib/git_helper.rb, line 2
def git_clone(path, name = "")
  system("git clone #{path} #{name}")
end
pull() click to toggle source
# File lib/git_helper.rb, line 10
def pull
  system('git pull')
end
push() click to toggle source
# File lib/git_helper.rb, line 14
def push
  system('git push')
end