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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b61da421f569c349289c3db86a857f6b6d3720f
4
- data.tar.gz: 398dd5582754f84bb4d981d11cba0526f6db3ace
3
+ metadata.gz: ea131614e8dbf1b8934d9e89b34d40e501e6b832
4
+ data.tar.gz: 76ad028d6d9affb988964c6690d62ddccdffb1be
5
5
  SHA512:
6
- metadata.gz: dc7d43603621c1f1365f35b5f7667a170385699a675008bfb3b4190d425b33ded8a9b90bbae2d2576542cd12dd40c72783ee60c6b7724c398a1821b8eae95088
7
- data.tar.gz: b3df0eeda1ea31b6d67847e7ef97e838911a1e45b17648fd346737307dd41538a68d81b824e0709ae3378f25f3d456c82bb557da36d8111e93aa69ef745846dc
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 pull origin"
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
@@ -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
- GR::Dirs.listing(path).each do |dir|
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")
@@ -1,3 +1,3 @@
1
1
  module GR
2
- VERSION="0.0.1"
2
+ VERSION="0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_en_masse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Marshall