Sha256: 36c4b1786b2c3461076cb9ba94d1da53d2b45970f629a3c848c3ac5695610ac7
Contents?: true
Size: 830 Bytes
Versions: 10
Compression:
Stored size: 830 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'eac_launcher/git/remote' module EacLauncher module Git class Base < ::EacLauncher::Paths::Real # @return [EacLauncher::Git::Remote] def remote(name) ::EacLauncher::Git::Remote.new(self, name) end def remote_hashs(remote_name) remote(remote_name).ls end def remote_exist?(remote_name) remote(remote_name).exist? end def assert_remote_url(remote_name, url) r = git.remote(remote_name) if !r.url || r.url != url r.remove if r.url git.add_remote(remote_name, url) end r end def remote_branch_sha(remote_name, branch_name) remote_hashs(remote_name)["refs/heads/#{branch_name}"] end end end end
Version data entries
10 entries across 10 versions & 2 rubygems