git_en_masse 0.0.1 → 0.0.3
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/bin/git_en_masse +1 -6
- data/lib/git_en_masse/runner.rb +4 -3
- data/lib/git_en_masse/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea131614e8dbf1b8934d9e89b34d40e501e6b832
|
|
4
|
+
data.tar.gz: 76ad028d6d9affb988964c6690d62ddccdffb1be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 968a0ea010fed8c31303bd8448cd85a10b01107472da8523f3ec99591caaabd48e9b8fe8dc608f020002ab1e8fe6cd10bbcc3a43b143ea0e7ee702455beccd75
|
|
7
|
+
data.tar.gz: bdf0c98f1dbd363ebf7d3c3a52d827a783fdbb0ca831ce54bf463a8f3fc6eda4c4d0a9f835b66f7e8fc2f7c3e5c491122f88b8b690159d00be293c0edd068de7
|
data/bin/git_en_masse
CHANGED
|
@@ -6,12 +6,7 @@ $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
|
|
|
6
6
|
require 'git_en_masse'
|
|
7
7
|
require 'optparse'
|
|
8
8
|
|
|
9
|
-
command = "git
|
|
10
|
-
primary_options = OptionParser.new do |opt|
|
|
11
|
-
opt.on("-c", "--command [CMD]", "Set git command to run") do |cmd|
|
|
12
|
-
command = cmd
|
|
13
|
-
end
|
|
14
|
-
end
|
|
9
|
+
command = if ARGV[0].nil? then "git fetch origin" else ARGV[0] end
|
|
15
10
|
|
|
16
11
|
ssh = GR::Run.new(command)
|
|
17
12
|
ssh.go
|
data/lib/git_en_masse/runner.rb
CHANGED
|
@@ -16,9 +16,10 @@ module GR
|
|
|
16
16
|
def go
|
|
17
17
|
path = GR::Dirs.current
|
|
18
18
|
puts "\nStarting in #{path}\n".colorize(:green)
|
|
19
|
-
puts "Will run #{@command}\n".colorize(:green)
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
puts "Will run $(#{@command})\n".colorize(:green)
|
|
20
|
+
dirs = GR::Dirs.listing(path)
|
|
21
|
+
puts "Found #{dirs.size} git directories".colorize(:green)
|
|
22
|
+
dirs.each do |dir|
|
|
22
23
|
result = self.cmd("#{path}/#{dir}")
|
|
23
24
|
if result == 0
|
|
24
25
|
printf(GR::FORMAT_OK, "#{dir}", "\u2713")
|
data/lib/git_en_masse/version.rb
CHANGED