capistrano-ssh-authorized-keys-github 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41ee42118dfd41d9d4a887f6eddfca038538c4459bcab645728d0018806e0cca
4
- data.tar.gz: fcbb145178fbed5ad4a2330a077157504241d5d098fcc7644a00e9bfc7b46aca
3
+ metadata.gz: 407a32cd53e70eaf8ec1386ec9f47700abe3c66a63d0ea60bd5655a2b5c1cadf
4
+ data.tar.gz: a81a938c7be2f821ec6f140f4c2a6141f9b9f09df478ca9b8385784c1ee97be0
5
5
  SHA512:
6
- metadata.gz: 87bbbea33b64d90acc1bf51c838244729e155a2dedd3072cc477456157becbbb7875294b90ddc42ee4636a7882de9457535c12ba61fa0b3ae2f099391b34f6db
7
- data.tar.gz: 6e3ab035c7330d900da7d03aeee4b6d26a5464c6416cb52795372966f723462ea4767ea848625cea5257bbaf10ed1be7d660ee769226d04e332dc464861e292e
6
+ metadata.gz: 1935e81a7b66aeb1a99b8ccef18e9c1d21887a5e6f5634ba6a3239ac24e2fa189e9ec16be395a731af691c72945935ffa30b5dd281af9c047b5e92ec638ccbc2
7
+ data.tar.gz: 0a6441bd065bc4a313b743faf03cd038afa92a0ba4e7657312ff7bf5e16707b02cc3a4f5cfcfc356363791d7a2c74e947fb8119c6d6c58a6ce4e4b42a6ddb071
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ before_install:
2
+ - gem install bundler
3
+ rvm:
4
+ - 2.7.0
5
+ - 3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Capistrano Cloudwatch [![Build Status](https://travis-ci.com/olioex/capistrano-ssh-authorized-keys-github.svg)](https://travis-ci.com/olioex/capistrano-ssh-authorized-keys-github) [![Gem Version](https://badge.fury.io/rb/capistrano-ssh-authorized-keys-github.svg)](http://badge.fury.io/rb/capistrano-ssh-authorized-keys-github)
1
+ # Capistrano Cloudwatch [![Build Status](https://app.travis-ci.com/OLIOEX/capistrano-ssh-authorized-keys-github.svg?branch=main)](https://app.travis-ci.com/olioex/capistrano-ssh-authorized-keys-github) [![Gem Version](https://badge.fury.io/rb/capistrano-ssh-authorized-keys-github.svg)](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.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.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