lib/glman/repos/git_repo.rb in glman-0.0.2 vs lib/glman/repos/git_repo.rb in glman-0.0.3

- old
+ new

@@ -22,8 +22,15 @@ def last_commit_message %x[git log -1].split("\n").select{|c| c.include?('Subject:')}.first.gsub('Subject:','').strip rescue nil end + + def push(origin, branch) + cmd = "git push #{origin} #{branch}" + %x[#{cmd}] + rescue + nil + end end end end \ No newline at end of file