Sha256: f018ff87d0481f68c99cf0c76047e54a2879e8b045a615932b50867a0a33c494
Contents?: true
Size: 979 Bytes
Versions: 100
Compression:
Stored size: 979 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'avm/git/launcher/remote' module Avm module Git module Launcher class Base < ::Avm::Launcher::Paths::Real module Remotes # @return [Avm::Git::Launcher::Remote] def remote(name) ::Avm::Git::Launcher::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 end end
Version data entries
100 entries across 100 versions & 2 rubygems