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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebfa0a655ff29ebdefed299f27fc87a0826bde332aef7c4d1317af16df996b1f
4
- data.tar.gz: bb175cd6e2f4d7f7bf5eac3ee5b2c92f848d8451005cfe173e9b6145c0a522e9
3
+ metadata.gz: 85fbb74adfa51265fbf7ac03bcebe9bbc82a5788b711fd5fc01a0205e32f8979
4
+ data.tar.gz: de2d5d1e0653eaca926d60e5707a3e909139c217a210040d3f7f912f0ab23086
5
5
  SHA512:
6
- metadata.gz: b01599cad75d41f2f64f706ea2e35c594d964d62aad8879b895d93bb3950b54e3fa2df08cc5d4f423e9a592d2b1ac1c80d995abe5a74941fa908a63eeb34dedf
7
- data.tar.gz: 4560a68c1ed27422ede1dee6c1faa18da618768529112945f8e3d10115ab516f6295f95fe8ba4a7fa6671c80f6c49c9dbe7aee69a1b8c111647947b33f5987c0
6
+ metadata.gz: e7ec2bace5daaa5954e78f3861e921c13fef5fa911b7b7e575c149deecfe89f370aa69ae6f21513089a406b17d11739d8ec5f2f2e3723c53365f1555d6e62ca9
7
+ data.tar.gz: eecb8376e777f44490ec41da96e1394d5742eca1e215692b4e2ace790d67e03e151320756c9538d4ba60ab55dedd3dd2cd172062ef0e8f55e44ae1df054a1ead
@@ -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
- puts blue(bold(dirname))
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Multipull
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multipull
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kojix2