Sha256: 54b38a2efaa9b3f781a936245ad528c1737ec5abefe9be8581156f8fc5ac0a7e

Contents?: true

Size: 710 Bytes

Versions: 9

Compression:

Stored size: 710 Bytes

Contents

# frozen_string_literal: true

require 'avm/git/scms/git/remote'
require 'eac_ruby_utils/core_ext'

module Avm
  module Git
    module Scms
      class Git < ::Avm::Scms::Base
        module Remotes
          DEFAULT_REMOTE_ID = 'origin'

          # @return [Avm::Git::Scms::Git::Remote]
          def default_remote
            remote(default_remote_id)
          end

          # @return [String]
          def default_remote_id
            DEFAULT_REMOTE_ID
          end

          # @param id [String]
          # @return [Avm::Git::Scms::Git::Remote]
          def remote(id)
            ::Avm::Git::Scms::Git::Remote.new(self, git_repo.remote(id))
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
avm-git-0.18.0 lib/avm/git/scms/git/remotes.rb
eac_tools-0.94.0 sub/avm-git/lib/avm/git/scms/git/remotes.rb
avm-git-0.17.0 lib/avm/git/scms/git/remotes.rb
eac_tools-0.86.5 sub/avm-git/lib/avm/git/scms/git/remotes.rb
avm-git-0.16.0 lib/avm/git/scms/git/remotes.rb
eac_tools-0.86.4 sub/avm-git/lib/avm/git/scms/git/remotes.rb
eac_tools-0.86.3 sub/avm-git/lib/avm/git/scms/git/remotes.rb
avm-git-0.15.0 lib/avm/git/scms/git/remotes.rb
eac_tools-0.86.2 sub/avm-git/lib/avm/git/scms/git/remotes.rb