Class: EacLauncher::Git::WarpBase
- Includes:
- Eac::SimpleCache
- Defined in:
- lib/eac_launcher/git/warp_base.rb
Overview
Métodos abstratos:
* source_instance
* source_remote_name
* current_ref
Direct Known Subclasses
Constant Summary collapse
- TARGET_REMOTE =
'target'.freeze
Instance Method Summary collapse
-
#initialize(instance) ⇒ WarpBase
constructor
A new instance of WarpBase.
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 |