capistrano-ssh-authorized-keys-github 1.0.0 → 1.0.1
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 +4 -4
- data/.travis.yml +5 -0
- data/README.md +4 -2
- data/capistrano-ssh-authorized-keys-github.gemspec +1 -1
- data/lib/capistrano/tasks/ssh-authorized-keys-github.cap +0 -2
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 407a32cd53e70eaf8ec1386ec9f47700abe3c66a63d0ea60bd5655a2b5c1cadf
|
|
4
|
+
data.tar.gz: a81a938c7be2f821ec6f140f4c2a6141f9b9f09df478ca9b8385784c1ee97be0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1935e81a7b66aeb1a99b8ccef18e9c1d21887a5e6f5634ba6a3239ac24e2fa189e9ec16be395a731af691c72945935ffa30b5dd281af9c047b5e92ec638ccbc2
|
|
7
|
+
data.tar.gz: 0a6441bd065bc4a313b743faf03cd038afa92a0ba4e7657312ff7bf5e16707b02cc3a4f5cfcfc356363791d7a2c74e947fb8119c6d6c58a6ce4e4b42a6ddb071
|
data/.travis.yml
ADDED
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Capistrano Cloudwatch [](https://app.travis-ci.com/olioex/capistrano-ssh-authorized-keys-github) [](http://badge.fury.io/rb/capistrano-ssh-authorized-keys-github)
|
|
2
2
|
|
|
3
3
|
Sync organisation SSH public keys to server `authorized_keys` file so they are able to SSH into OS - for [Capistrano v3](https://github.com/capistrano/capistrano).
|
|
4
4
|
|
|
@@ -34,7 +34,9 @@ The task will run automatically on successful deploy. Alternatively, you can not
|
|
|
34
34
|
|
|
35
35
|
### Notes
|
|
36
36
|
|
|
37
|
-
Users in your organisation will need to have their membership public in order for SSH public keys to be sync'd to the server
|
|
37
|
+
Users in your organisation will need to have their membership public in order for SSH public keys to be sync'd to the server.
|
|
38
|
+
|
|
39
|
+
Github rate limits aren't currently respected. They are limited to 60 per hour. if you have a large number of users and are doing regular syncing from an IP address then you will be rate limited.
|
|
38
40
|
|
|
39
41
|
## Copyright
|
|
40
42
|
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'capistrano-ssh-authorized-keys-github'
|
|
7
|
-
spec.version = '1.0.
|
|
7
|
+
spec.version = '1.0.1'
|
|
8
8
|
spec.authors = ['lloydwatkin']
|
|
9
9
|
spec.email = ['lloyd@olioex.com']
|
|
10
10
|
spec.summary = %q{Sync Github organisation public SSH keys to `server authorized_keys` file}
|
|
@@ -16,10 +16,8 @@ namespace :security do
|
|
|
16
16
|
[*organisations].each do |organisation|
|
|
17
17
|
url = URI("https://api.github.com/orgs/#{organisation}")
|
|
18
18
|
organisation_details = JSON.parse(Net::HTTP.get_response(url).body, symbolize_names: true)
|
|
19
|
-
puts organisation_details
|
|
20
19
|
members_url = URI(organisation_details[:members_url].gsub("{/member}", ""))
|
|
21
20
|
members = JSON.parse(Net::HTTP.get_response(members_url).body, symbolize_names: true)
|
|
22
|
-
puts members
|
|
23
21
|
keys += " #
|
|
24
22
|
# #{organisation_details[:name]} keys
|
|
25
23
|
# #{members_url}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-ssh-authorized-keys-github
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- lloydwatkin
|
|
@@ -75,6 +75,7 @@ extensions: []
|
|
|
75
75
|
extra_rdoc_files: []
|
|
76
76
|
files:
|
|
77
77
|
- ".gitignore"
|
|
78
|
+
- ".travis.yml"
|
|
78
79
|
- Gemfile
|
|
79
80
|
- LICENSE
|
|
80
81
|
- README.md
|