Class: EacLauncher::Git::WarpBase

Inherits:
Path
  • Object
show all
Includes:
Eac::SimpleCache
Defined in:
lib/eac_launcher/git/warp_base.rb

Overview

Métodos abstratos:

* source_instance
* source_remote_name
* current_ref

Constant Summary collapse

TARGET_REMOTE =
'target'.freeze

Instance Method Summary collapse

Methods inherited from Path

#basename, #find_file_with_extension, #find_files_with_extension, #subpath

Constructor Details

#initialize(instance) ⇒ WarpBase

Returns a new instance of WarpBase.



12
13
14
15
16
17
# File 'lib/eac_launcher/git/warp_base.rb', line 12

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