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

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

Overview

Métodos abstratos:

* source_instance
* source_remote_name
* current_ref

Constant Summary collapse

TARGET_REMOTE =
::Avm::Projects::Stereotypes::Git::Publish::PUBLISH_GIT_REMOTE_NAME

Instance Method Summary collapse

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.



20
21
22
23
24
25
# File 'lib/avm/launcher/git/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