Sha256: cc0517602515fb0e465fe7c1d3d67407373981a7938bc6f8b8fa9035937f9f88

Contents?: true

Size: 393 Bytes

Versions: 7

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'eac_git/local/remote'

module EacGit
  class Local
    module Remotes
      def remote(name)
        ::EacGit::Local::Remote.new(self, name)
      end

      def remotes
        command('remote').execute!.each_line.map(&:strip).compact_blank.map do |name|
          remote(name)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
eac_tools-0.86.5 sub/eac_git/lib/eac_git/local/remotes.rb
eac_tools-0.86.4 sub/eac_git/lib/eac_git/local/remotes.rb
eac_tools-0.86.3 sub/eac_git/lib/eac_git/local/remotes.rb
eac_git-0.16.0 lib/eac_git/local/remotes.rb
eac_tools-0.86.2 sub/eac_git/lib/eac_git/local/remotes.rb
eac_git-0.15.0 lib/eac_git/local/remotes.rb
eac_tools-0.84.2 sub/eac_git/lib/eac_git/local/remotes.rb