Sha256: 0e738abdd5b30dea5b940b5aef99b14da90f0b69f9aadf2bc3c4dd5eb10172a7
Contents?: true
Size: 776 Bytes
Versions: 8
Compression:
Stored size: 776 Bytes
Contents
module EacLauncher module Git class MirrorUpdate < ::EacLauncher::Paths::Real include ::Eac::SimpleCache def initialize(target_path, source_path, source_rev) super(target_path) @target_git = ::EacLauncher::Git::Base.new(self) @source_git = ::EacLauncher::Git::Base.new(source_path) @source_rev = source_rev run end private def run fetch_remote_source reset_source_rev end def fetch_remote_source @target_git.git @target_git.assert_remote_url('origin', @source_git) @target_git.fetch('origin', tags: true) end def reset_source_rev @target_git.reset_hard(@source_git.rev_parse(@source_rev, true)) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems