pullall 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pullall.rb +3 -5
- metadata +2 -2
data/lib/pullall.rb
CHANGED
@@ -12,7 +12,7 @@ class Pullall
|
|
12
12
|
Usage:
|
13
13
|
|
14
14
|
pullall <group> # pull all the repos from <group>
|
15
|
-
pullall ls
|
15
|
+
pullall ls # list all the groups
|
16
16
|
pullall add <path> -g <group> # add <path> to <group>. If <group> doesn't exist create it
|
17
17
|
pullall add <path1> <path2> -g <group> # add multiple paths to <group>
|
18
18
|
pullall rm <path> -g <group> # remove <path> from <group>
|
@@ -60,8 +60,7 @@ HELP
|
|
60
60
|
group = cmd_opts[:group]
|
61
61
|
if group
|
62
62
|
group_opt_index = args.index('-g') || args.index('--group')
|
63
|
-
paths = args - args[group_opt_index..group_opt_index + 1]
|
64
|
-
paths = get_real_paths(paths)
|
63
|
+
paths = get_real_paths(args - args[group_opt_index..group_opt_index + 1])
|
65
64
|
save_paths(*paths, cmd_opts[:group])
|
66
65
|
else
|
67
66
|
Trollop::die "You must define a group name using -g option"
|
@@ -72,8 +71,7 @@ HELP
|
|
72
71
|
group = cmd_opts[:group]
|
73
72
|
if group
|
74
73
|
group_opt_index = args.index('-g') || args.index('--group')
|
75
|
-
paths = args - args[group_opt_index..group_opt_index + 1]
|
76
|
-
paths = get_real_paths(paths)
|
74
|
+
paths = get_real_paths(args - args[group_opt_index..group_opt_index + 1])
|
77
75
|
if paths.empty?
|
78
76
|
remove_group(group)
|
79
77
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pullall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 1.4.4
|
30
|
-
description: Pull all the repositories that belong to a group you
|
30
|
+
description: Pull from all the repositories that belong to a group you created
|
31
31
|
email:
|
32
32
|
- joao@iterar.co
|
33
33
|
- joao@savantstudio.co.uk
|