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”.
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.
16 17 18 |
# File 'lib/eac_git/remote_like.rb', line 16 def git_command(*_args) raise_abstract_method __method__ end |
#ls ⇒ EacGit::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_reference ⇒ String
28 29 30 |
# File 'lib/eac_git/remote_like.rb', line 28 def remote_reference raise_abstract_method __method__ end |