git_tools 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-branch-cleaner +2 -2
- data/git_tools.gemspec +1 -1
- data/lib/git_tools/branches/cleaner.rb +5 -0
- 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: 0bee5df76980fc88244520c21d3321e15ce9dd8b
|
4
|
+
data.tar.gz: 31eac7a1ba52a3ff0f46306e6b85ff7ce814ef67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64d1b2d863d0038e89dd5f1fd5aa371b4b824184fe5a8aac4c4b1f8274e44195aef5eb4d99ca1b0bf5dc1d8417fcf7765d444578260c463872b6b17f2194465f
|
7
|
+
data.tar.gz: 457ce5eea993b94b32caf677c36d2937e5af6295c81c48aab31203890181a4ab643e7c11483ac4f30ed221e29ccef3643f7593c3cdfe267f0df1a7e845de7cbe
|
data/bin/git-branch-cleaner
CHANGED
@@ -25,8 +25,8 @@ DOCOPT
|
|
25
25
|
|
26
26
|
begin
|
27
27
|
args = Docopt::docopt(doc)
|
28
|
-
GitTools::Branches::ActionExecutor.test_mode = args[
|
29
|
-
GitTools::Branches::ActionExecutor.skip_prompted = !args[
|
28
|
+
GitTools::Branches::ActionExecutor.test_mode = args['--test']
|
29
|
+
GitTools::Branches::ActionExecutor.skip_prompted = !args['--prompt']
|
30
30
|
|
31
31
|
if args['--verbose']
|
32
32
|
$VERBOSE = true
|
data/git_tools.gemspec
CHANGED
@@ -54,6 +54,7 @@ module GitTools
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def run!
|
57
|
+
puts "Skipping prompts" if $VERBOSE && ActionExecutor.skip_prompted
|
57
58
|
(@branches - protected_branches - [master_branch] ).each do |branch|
|
58
59
|
branch = Branch.new(branch, remote)
|
59
60
|
containing_branches = contained_branches(branch.normalized_name) - [branch.name]
|
@@ -213,6 +214,10 @@ module GitTools
|
|
213
214
|
@@test_mode = (value == true)
|
214
215
|
end
|
215
216
|
|
217
|
+
def self.skip_prompted
|
218
|
+
@@skip_prompted
|
219
|
+
end
|
220
|
+
|
216
221
|
def self.skip_prompted=(value)
|
217
222
|
@@skip_prompted = (value == true)
|
218
223
|
end
|