Class: Avm::Git::Launcher::WarpBase

Inherits:
Launcher::Paths::Real
  • Object
show all
Includes:
EacRubyUtils::SimpleCache
Defined in:
lib/avm/git/launcher/warp_base.rb

Overview

Métodos abstratos:

* source_instance
* source_remote_name
* current_ref

Constant Summary collapse

TARGET_REMOTE =
::Avm::Git::LauncherStereotypes::Git::Publish::PUBLISH_GIT_REMOTE_NAME

Instance Method Summary collapse

Constructor Details

#initialize(instance) ⇒ WarpBase

Returns a new instance of WarpBase.



20
21
22
23
24
25
# File 'lib/avm/git/launcher/warp_base.rb', line 20

def initialize(instance)
  @instance = instance
  cache_git.git.reset_hard(current_ref)
  cache_git.remote(TARGET_REMOTE).url = target_remote_url
  super(path)
end