class GitSystemCall
Public Instance Methods
git_branch()
click to toggle source
# File lib/furi/git/git_system_call.rb, line 4 def git_branch call 'git branch' end
git_status()
click to toggle source
# File lib/furi/git/git_system_call.rb, line 8 def git_status call 'git status' end
Private Instance Methods
call(command)
click to toggle source
# File lib/furi/git/git_system_call.rb, line 13 def call(command) stdout_str, stdout_err, status = Open3.capture3(command) if status.exitstatus == 0 stdout_str else '' end end