class MyLib
Public Instance Methods
pull()
click to toggle source
# File lib/mylib.rb, line 16 def pull Open3.popen3('find . -type d -name .git -exec git --git-dir={} --work-tree=$PWD/{}/.. pull \;') do | stdin, stdout, stderr, wait_thr| puts stdout.read # puts stderr.read end end
push()
click to toggle source
# File lib/mylib.rb, line 24 def push Open3.popen3('find . -type d -name .git -exec git --git-dir={} --work-tree=$PWD/{}/.. push \;') do | stdin, stdout, stderr, wait_thr| puts stdout.read # puts stderr.read end end
status()
click to toggle source
# File lib/mylib.rb, line 7 def status # system 'find . -type d -name .git -exec git --git-dir={} --work-tree=$PWD/{}/.. status \;' Open3.popen3('find . -type d -name .git -exec git --git-dir={} --work-tree=$PWD/{}/.. status \;') do | stdin, stdout, stderr, wait_thr| puts stdout.read # puts stderr.read end end