Class: Aptible::CLI::Helpers::App::HandleFromGitRemote
- Inherits:
-
Object
- Object
- Aptible::CLI::Helpers::App::HandleFromGitRemote
- Defined in:
- lib/aptible/cli/helpers/app.rb
Constant Summary collapse
- PATTERN =
%r{ :((?<environment_handle>[0-9a-z\-_\.]+?)/)? (?<app_handle>[0-9a-z\-_\.]+)\.git \z }x
Class Method Summary collapse
Class Method Details
.parse(url) ⇒ Object
34 35 36 |
# File 'lib/aptible/cli/helpers/app.rb', line 34 def self.parse(url) PATTERN.match(url) || {} end |