Sha256: 64b5aa87cc0bca355fb2bf30ebdfa7da1e94c112aa015b1210b4a4c13b64399a

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

# 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)

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).

## Installation

Add this line to your application's Gemfile:

    gem 'capistrano-ssh-authorized-keys-github', require: false

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install capistrano-ssh-authorized-keys-github

## Usage

Require the gem in your `Capfile`:

    require 'capistrano/ssh-authorized-keys-github'

And then set the variables in `config/deploy.rb`:

    set :github_org, 'olioex'
    # ...or... (takes priority)
    set :github_orgs, ['olioex', 'github']

The task will run automatically on successful deploy. Alternatively, you can notify of a deploy starting manually by using:

    bundle exec cap production security:sync_ssh_keys

### Notes

Users in your organisation will need to have their membership public in order for SSH public keys to be sync'd to the server

## Copyright

Copyright (c) 2022 OLIO Exchange Ltd. See LICENSE.txt for further details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-ssh-authorized-keys-github-1.0.0 README.md