Class: Bundler::Alive::SourceCodeRepository
- Inherits:
-
Object
- Object
- Bundler::Alive::SourceCodeRepository
- Defined in:
- lib/bundler/alive/source_code_repository.rb
Overview
Represents a source code repository
Defined Under Namespace
Modules: Service
Instance Method Summary collapse
-
#initialize(url:) ⇒ SourceCodeRepository
constructor
Creates a
SourceCodeRepository
.
Constructor Details
#initialize(url:) ⇒ SourceCodeRepository
Creates a SourceCodeRepository
17 18 19 20 21 22 23 |
# File 'lib/bundler/alive/source_code_repository.rb', line 17 def initialize(url:) raise ArgumentError, "Unknown url: #{url}" unless url.instance_of?(SourceCodeRepositoryUrl) @url = url freeze end |