Sha256: 2f0a44b39f732f34b5944712e7b3b050fb3d78bb86701c1d448fa867a80e7897

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

module Bundler
  module Alive
    # Represents a source code repository
    class SourceCodeRepository
      module Service
        GITHUB = :github
      end

      #
      # Creates a `SourceCodeRepository`
      #
      # @param [SourceCodeRepositoryUrl] url
      #
      def initialize(url:)
        raise ArgumentError, "Unknown url: #{url}" unless url.instance_of?(SourceCodeRepositoryUrl)

        @url = url
      end

      private

      attr_reader :url
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bundler-alive-0.1.4 lib/bundler/alive/source_code_repository.rb
bundler-alive-0.1.3 lib/bundler/alive/source_code_repository.rb