github-backups 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkd +1 -1
- data/VERSION +1 -1
- data/github-backups.gemspec +1 -1
- data/lib/utils/options.rb +5 -4
- metadata +1 -1
data/README.mkd
CHANGED
@@ -17,9 +17,9 @@ Usage: github-backup -u [username] -o [dir]
|
|
17
17
|
e.g
|
18
18
|
github-backup -u hbt -o /tmp
|
19
19
|
|
20
|
-
-p, --password PASSWORD Optional: GitHub password. Required for private repos
|
21
20
|
-u, --username USERNAME *Required: GitHub username
|
22
21
|
-o, --output-dir DIR *Required: Backup directory
|
22
|
+
-p, --password PASSWORD Optional: GitHub password. Required for private repos
|
23
23
|
-r, --repository-name NAME Optional: limit to this repository name
|
24
24
|
-f, --forks Optional: fetch all forks
|
25
25
|
-b, --init-branches Optional: init all branches
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
data/github-backups.gemspec
CHANGED
data/lib/utils/options.rb
CHANGED
@@ -13,9 +13,6 @@ module GitHubBackup
|
|
13
13
|
e.g
|
14
14
|
github-backup -u hbt -o /tmp \n\n"
|
15
15
|
|
16
|
-
opts.on( '-p', '--password PASSWORD', 'Optional: GitHub password. Required for private repos') do |f|
|
17
|
-
self.options[:passwd] = f
|
18
|
-
end
|
19
16
|
|
20
17
|
opts.on( '-u', '--username USERNAME', '*Required: GitHub username') do |f|
|
21
18
|
self.options[:username] = f
|
@@ -25,6 +22,10 @@ github-backup -u hbt -o /tmp \n\n"
|
|
25
22
|
self.options[:bakdir] = File.expand_path(f)
|
26
23
|
end
|
27
24
|
|
25
|
+
opts.on( '-p', '--password PASSWORD', 'Optional: GitHub password. Required for private repos') do |f|
|
26
|
+
self.options[:passwd] = f
|
27
|
+
end
|
28
|
+
|
28
29
|
opts.on( '-r', '--repository-name NAME', 'Optional: limit to this repository name' ) do |f|
|
29
30
|
self.options[:reponame] = f
|
30
31
|
end
|
@@ -78,4 +79,4 @@ github-backup -u hbt -o /tmp \n\n"
|
|
78
79
|
|
79
80
|
end
|
80
81
|
end
|
81
|
-
end
|
82
|
+
end
|