Class: EacGit::Remote::LsResult
- Inherits:
-
Object
- Object
- EacGit::Remote::LsResult
- Defined in:
- lib/eac_git/remote/ls_result.rb
Class Method Summary collapse
Class Method Details
.by_ls_remote_command_output(output) ⇒ Object
9 10 11 12 13 |
# File 'lib/eac_git/remote/ls_result.rb', line 9 def by_ls_remote_command_output(output) new( output.each_line.map { |line| line.strip.split(/\s+/) }.map { |x| [x[1], x[0]] }.to_h ) end |