gem-clone 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rubygems/commands/clone_command.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f05d7ae51f03ff10466a4db393f7ef54a12bede9bed12c7e1b45a94932334c7a
|
|
4
|
+
data.tar.gz: e88a27ac3b234f8a2111af37ac45797a1f4f1dae4b028fe75a7f45b775ef974b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24e912fb1c57eaa8f4c8eeacfddd464da3b59357fd87b613f976e5162ad3990d5dfa3ddcd87027a3614689a290fb58be1a798442f43b542960c9c42e74edeeca
|
|
7
|
+
data.tar.gz: e1f237bf55e5db12a6aa84559dd6431836fa48e7c34bc55f5346c036027a0e34c71c049ca13f488165d7fb71f036aef20e0574bc3659e847b582a43a6afbe927
|
|
@@ -5,8 +5,9 @@ require 'uri'
|
|
|
5
5
|
require 'open3'
|
|
6
6
|
|
|
7
7
|
class Gem::Commands::CloneCommand < Gem::Command
|
|
8
|
-
# git goget answers with
|
|
9
|
-
|
|
8
|
+
# git goget answers with these for a repository it deliberately left alone.
|
|
9
|
+
GOGET_UNREACHABLE = 3
|
|
10
|
+
GOGET_LOCAL_WORK = 4
|
|
10
11
|
|
|
11
12
|
def initialize
|
|
12
13
|
super 'clone', 'Clone a gem repository using git goget, ghq, or git'
|
|
@@ -145,9 +146,11 @@ Examples:
|
|
|
145
146
|
case $?.exitstatus
|
|
146
147
|
when 0
|
|
147
148
|
say "Successfully cloned repository: #{url}"
|
|
148
|
-
when
|
|
149
|
+
when GOGET_UNREACHABLE
|
|
149
150
|
alert_error "Repository is unreachable: #{url}"
|
|
150
151
|
terminate_interaction 1
|
|
152
|
+
when GOGET_LOCAL_WORK
|
|
153
|
+
alert_warning "Left the existing checkout alone: #{url}"
|
|
151
154
|
else
|
|
152
155
|
alert_error "Failed to clone repository with git goget."
|
|
153
156
|
terminate_interaction 1
|