Sha256: c8e0ba77a0cd89fcef2ebd22dacbda8c0617b083a3349d505c24160105fcabcd

Contents?: true

Size: 452 Bytes

Versions: 79

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacGit
  module RemoteLike
    class LsResult
      class << self
        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
      end

      common_constructor :hashes
      delegate :fetch, :'[]', :count, :any?, :empty?, to: :hashes
    end
  end
end

Version data entries

79 entries across 79 versions & 2 rubygems

Version Path
eac_tools-0.84.1 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.84.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.83.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.82.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.81.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.80.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.79.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.78.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.77.1 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.77.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.76.1 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.76.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.75.2 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.75.1 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.75.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.74.1 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.74.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.73.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.72.0 sub/eac_git/lib/eac_git/remote_like/ls_result.rb
eac_tools-0.70.1 sub/eac_git/lib/eac_git/remote_like/ls_result.rb