github_downloader 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -10
- data/lib/github_downloader.rb +2 -2
- data/lib/github_downloader/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: 3a4d90a87197037f8914bb331fda0994a92d43ff
|
4
|
+
data.tar.gz: 5a395d094ba276d06b33100c42e3c8cdd073efdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 564f6b229cefc9a4fd1e3f80e2f9dfae46d74d46139021f60a9f515b189572b379a9568d8db2d9ca4d9b2fd96ec928957ff1c0d5b2a91990101ff84241043ee6
|
7
|
+
data.tar.gz: 463ffe31261bf3c8e05f77cb553050e9c88ac053c394823695e20066cce77f3f007ca7526ffe31d6bc0c59fb69de840d7d608905936f05623c444d1d801b7480
|
data/README.md
CHANGED
@@ -1,28 +1,32 @@
|
|
1
1
|
# GithubDownloader
|
2
2
|
|
3
|
-
|
3
|
+
A simple gem for bulk downloading all the GitHub repositories you have access to for an user account or an organization account.
|
4
|
+
|
5
|
+
It will download all the repositories you have access to with your account.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
|
-
|
9
|
+
$ gem install github_downloader
|
10
|
+
|
11
|
+
## Usage
|
8
12
|
|
9
|
-
|
13
|
+
Once installed, you can use the gem by typing the command `ghdl` with some parameters.
|
10
14
|
|
11
|
-
|
15
|
+
For a comprehensive help with all available parameters, you should execute:
|
12
16
|
|
13
|
-
$
|
17
|
+
$ ghdl --help
|
14
18
|
|
15
|
-
|
19
|
+
An example for downloading all repos for an organization in the current directory:
|
16
20
|
|
17
|
-
$
|
21
|
+
$ ghdl -u your_github_user -p your_github_password -g organization_name
|
18
22
|
|
19
|
-
|
23
|
+
An example for downloading all repos of a given user in a specific directory:
|
20
24
|
|
21
|
-
|
25
|
+
$ ghdl -u your_github_user -p your_github_password -o /an/output/directory/ -r a_github_user
|
22
26
|
|
23
27
|
## Contributing
|
24
28
|
|
25
|
-
1. Fork it ( http://github.com
|
29
|
+
1. Fork it ( http://github.com/mrmans0n/github-downloader/fork )
|
26
30
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
31
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
32
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/github_downloader.rb
CHANGED
@@ -55,7 +55,7 @@ module GithubDownloader
|
|
55
55
|
user_repo = options[:from]
|
56
56
|
|
57
57
|
github = Github.new basic_auth: "#{user}:#{pass}" do |config|
|
58
|
-
config.org = organization
|
58
|
+
config.org = organization unless organization.blank?
|
59
59
|
config.auto_pagination = true
|
60
60
|
end
|
61
61
|
|
@@ -72,4 +72,4 @@ module GithubDownloader
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
75
|
-
end
|
75
|
+
end
|