Sha256: 0c1c87a54c788c459813b7f9cd316563677bd9b598c74ff79a037158a983c832

Contents?: true

Size: 702 Bytes

Versions: 86

Compression:

Stored size: 702 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacGit
  module RemoteLike
    require_sub __FILE__
    enable_abstract_methods

    # @return [String] The output of command "git fetch".
    def fetch
      local.command('fetch', name).execute!
    end

    # @return [EacRubyUtils::Envs::Command
    def git_command(*_args)
      raise_abstract_method __method__
    end

    # @return [EacGit::RemoteLike::LsResult]
    def ls
      ::EacGit::RemoteLike::LsResult.by_ls_remote_command_output(
        git_command('ls-remote', remote_reference).execute!
      )
    end

    # @return [String]
    def remote_reference
      raise_abstract_method __method__
    end
  end
end

Version data entries

86 entries across 86 versions & 2 rubygems

Version Path
eac_tools-0.86.5 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.86.4 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.86.3 sub/eac_git/lib/eac_git/remote_like.rb
eac_git-0.16.0 lib/eac_git/remote_like.rb
eac_tools-0.86.2 sub/eac_git/lib/eac_git/remote_like.rb
eac_git-0.15.0 lib/eac_git/remote_like.rb
eac_tools-0.84.2 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.84.1 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.84.0 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.83.0 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.82.0 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.81.0 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.80.0 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.79.0 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.78.0 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.77.1 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.77.0 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.76.1 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.76.0 sub/eac_git/lib/eac_git/remote_like.rb
eac_tools-0.75.2 sub/eac_git/lib/eac_git/remote_like.rb