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
-
#fetch ⇒ String
The output of command “git fetch”.
-
#git_command(*_args) ⇒ EacRubyUtils::Envs::Command
EacRubyUtils::Envs::Command.
- #ls ⇒ EacGit::RemoteLike::LsResult
- #remote_reference ⇒ String
Instance Method Details
#fetch ⇒ String
Returns The output of command “git fetch”.
9 10 11 |
# File 'lib/eac_git/remote_like.rb', line 9 def fetch local.command('fetch', name).execute! end |
#git_command(*_args) ⇒ EacRubyUtils::Envs::Command
Returns EacRubyUtils::Envs::Command.
14 15 16 |
# File 'lib/eac_git/remote_like.rb', line 14 def git_command(*_args) raise_abstract_method __method__ end |
#ls ⇒ EacGit::RemoteLike::LsResult
19 20 21 22 23 |
# File 'lib/eac_git/remote_like.rb', line 19 def ls ::EacGit::RemoteLike::LsResult.by_ls_remote_command_output( git_command('ls-remote', remote_reference).execute! ) end |
#remote_reference ⇒ String
26 27 28 |
# File 'lib/eac_git/remote_like.rb', line 26 def remote_reference raise_abstract_method __method__ end |