multipull 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/multipull/command.rb +9 -2
- data/lib/multipull/version.rb +1 -1
- 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: 85fbb74adfa51265fbf7ac03bcebe9bbc82a5788b711fd5fc01a0205e32f8979
|
4
|
+
data.tar.gz: de2d5d1e0653eaca926d60e5707a3e909139c217a210040d3f7f912f0ab23086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7ec2bace5daaa5954e78f3861e921c13fef5fa911b7b7e575c149deecfe89f370aa69ae6f21513089a406b17d11739d8ec5f2f2e3723c53365f1555d6e62ca9
|
7
|
+
data.tar.gz: eecb8376e777f44490ec41da96e1394d5742eca1e215692b4e2ace790d67e03e151320756c9538d4ba60ab55dedd3dd2cd172062ef0e8f55e44ae1df054a1ead
|
data/lib/multipull/command.rb
CHANGED
@@ -57,13 +57,19 @@ module Multipull
|
|
57
57
|
next
|
58
58
|
end
|
59
59
|
|
60
|
+
skipped = []
|
60
61
|
succeeded = []
|
61
|
-
failed
|
62
|
+
failed = []
|
62
63
|
Dir.chdir(dir) do
|
63
64
|
Dir.glob('*/').each do |subdir|
|
64
65
|
Dir.chdir(subdir) do
|
65
66
|
dirname = subdir.delete_suffix('/')
|
66
|
-
|
67
|
+
if File.directory?('.git')
|
68
|
+
puts blue(bold(dirname))
|
69
|
+
else
|
70
|
+
skipped << dirname
|
71
|
+
next
|
72
|
+
end
|
67
73
|
if system("git pull #{@git_opts.join(' ')}")
|
68
74
|
succeeded << dirname
|
69
75
|
else
|
@@ -72,6 +78,7 @@ module Multipull
|
|
72
78
|
end
|
73
79
|
end
|
74
80
|
end
|
81
|
+
warn bold('Skipped : ') + skipped.join(' ')
|
75
82
|
warn bold(green('Succeeded : ')) + succeeded.join(' ')
|
76
83
|
warn bold(magenta('Failed : ')) + failed.join(' ')
|
77
84
|
end
|
data/lib/multipull/version.rb
CHANGED