Class: Rosette::Core::Commands::FetchCommand
- Inherits:
-
GitCommand
- Object
- Command
- GitCommand
- Rosette::Core::Commands::FetchCommand
- Includes:
- WithRepoName
- Defined in:
- lib/rosette/core/commands/git/fetch_command.rb
Overview
Performs a git fetch on a repository. New branches and commits will be downloaded from the remote server (often called “origin”) and become part of the local copy.
Instance Attribute Summary
Attributes included from WithRepoName
Attributes inherited from Command
Instance Method Summary collapse
-
#execute ⇒ Java::OrgEclipseJgitTransport::FetchResult
Perform the fetch operation.
Methods included from WithRepoName
Methods inherited from GitCommand
Methods inherited from Command
#initialize, #messages, #valid?, validate, validators
Constructor Details
This class inherits a constructor from Rosette::Core::Commands::Command
Instance Method Details
#execute ⇒ Java::OrgEclipseJgitTransport::FetchResult
Perform the fetch operation.
20 21 22 |
# File 'lib/rosette/core/commands/git/fetch_command.rb', line 20 def execute get_repo(repo_name).repo.fetch end |