Module: EacGit::RemoteLike

Included in:
Local::Remote, Remote
Defined in:
lib/eac_git/remote_like.rb,
lib/eac_git/remote_like/ls_result.rb

Defined Under Namespace

Classes: LsResult

Instance Method Summary collapse

Instance Method Details

#fetchString

Returns The output of command “git fetch”.

Returns:

  • (String)

    The output of command “git fetch”.



8
9
10
# File 'lib/eac_git/remote_like.rb', line 8

def fetch
  local.command('fetch', name).execute!
end

#git_command(*_args) ⇒ EacRubyUtils::Envs::Command

Returns EacRubyUtils::Envs::Command.

Returns:

  • (EacRubyUtils::Envs::Command)

    EacRubyUtils::Envs::Command



13
14
15
# File 'lib/eac_git/remote_like.rb', line 13

def git_command(*_args)
  raise_abstract_method __method__
end

#lsEacGit::RemoteLike::LsResult



18
19
20
21
22
# File 'lib/eac_git/remote_like.rb', line 18

def ls
  ::EacGit::RemoteLike::LsResult.by_ls_remote_command_output(
    git_command('ls-remote', remote_reference).execute!
  )
end

#remote_referenceString

Returns:

  • (String)


25
26
27
# File 'lib/eac_git/remote_like.rb', line 25

def remote_reference
  raise_abstract_method __method__
end