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”.



11
12
13
# File 'lib/eac_git/remote_like.rb', line 11

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



16
17
18
# File 'lib/eac_git/remote_like.rb', line 16

def git_command(*_args)
  raise_abstract_method __method__
end

#lsEacGit::RemoteLike::LsResult



21
22
23
24
25
# File 'lib/eac_git/remote_like.rb', line 21

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

#remote_referenceString

Returns:

  • (String)


28
29
30
# File 'lib/eac_git/remote_like.rb', line 28

def remote_reference
  raise_abstract_method __method__
end