Class: EacLauncher::Git::WarpBase
- Inherits:
-
Paths::Real
- Object
- String
- Paths::Real
- EacLauncher::Git::WarpBase
- Includes:
- EacRubyUtils::SimpleCache
- Defined in:
- lib/eac_launcher/git/warp_base.rb
Overview
Métodos abstratos:
* source_instance
* source_remote_name
* current_ref
Direct Known Subclasses
Avm::Projects::Stereotypes::Git::Warp, Avm::Projects::Stereotypes::GitSubtree::Warp
Constant Summary collapse
- TARGET_REMOTE =
::Avm::Projects::Stereotypes::Git::Publish::PUBLISH_GIT_REMOTE_NAME
Instance Method Summary collapse
-
#initialize(instance) ⇒ WarpBase
constructor
A new instance of WarpBase.
Methods inherited from Paths::Real
#basename, #dirname, #find_file_with_extension, #find_files_with_extension, #subpath
Constructor Details
#initialize(instance) ⇒ WarpBase
Returns a new instance of WarpBase.
18 19 20 21 22 23 |
# File 'lib/eac_launcher/git/warp_base.rb', line 18 def initialize(instance) @instance = instance cache_git.git.reset_hard(current_ref) cache_git.remote(TARGET_REMOTE).url = target_remote_url super(path) end |