Class: Mutant::License::Subscription::Opensource::Repository Private
- Inherits:
-
Object
- Object
- Mutant::License::Subscription::Opensource::Repository
- Defined in:
- lib/mutant/license/subscription/opensource.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- REMOTE_REGEXP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/\A[^\t]+\t(?<url>[^ ]+) \((?:fetch|push)\)\n\z/.freeze
- GIT_SSH_REGEXP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%r{\A[^@]+@(?<host>[^:/]+)[:/](?<path>.+?)(?:\.git)?\z}.freeze
- GIT_HTTPS_REGEXP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%r{\Ahttps://(?<host>[^/]+)/(?<path>.+?)(?:\.git)?\z}.freeze
Class Method Summary collapse
- .parse(input) ⇒ Object private
Instance Method Summary collapse
- #to_s ⇒ Object private
Class Method Details
.parse(input) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/mutant/license/subscription/opensource.rb', line 22 def self.parse(input) new(*input.split('/', 2)) end |
Instance Method Details
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/mutant/license/subscription/opensource.rb', line 18 def to_s [host, path].join('/') end |