cap-ssh-key-man 1.0.0 → 1.1.0
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.
- data/README +19 -0
- data/VERSION +1 -1
- data/cap-ssh-key-man.gemspec +2 -2
- data/lib/cap-ssh-key-man/tasks/sync.rb +2 -2
- metadata +4 -4
data/README
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
Cap ssh-key man
|
2
|
+
===============
|
3
|
+
|
4
|
+
A capistrano command that allows you to put all developers' public keys to all servers.
|
5
|
+
This must be a painful job to add developer's ssh key to all servers one by one,
|
6
|
+
but after you have this tool, you just need execute `cap sshkey:deploy`
|
7
|
+
|
8
|
+
Usage
|
9
|
+
=====
|
10
|
+
|
11
|
+
1. Add `gem "cap-ssh-key-man"` in your Gemfile.
|
12
|
+
|
13
|
+
2. Add `require 'cap-ssh-key-man/tasks/sync'` to `config/deploy.rb` of your rails project.
|
14
|
+
|
15
|
+
3. Put all public ssh keys to `config/developer_ssh_keys` dir of your rails project.
|
16
|
+
|
17
|
+
4. Execute `cap sshkey:deploy`
|
18
|
+
|
19
|
+
Done.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/cap-ssh-key-man.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cap-ssh-key-man}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael He"]
|
12
|
-
s.date = %q{2011-12-
|
12
|
+
s.date = %q{2011-12-16}
|
13
13
|
s.description = %q{This tool is used to mass deploy ssh-keys to all your servers according to the capistrano config.}
|
14
14
|
s.email = %q{hlxwell@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require "cap-ssh-key-man/public_key_combiner"
|
2
2
|
Capistrano::Configuration.instance(true).load do
|
3
|
-
namespace :
|
3
|
+
namespace :sshkey do
|
4
4
|
desc "Sync keys to servers"
|
5
|
-
task :
|
5
|
+
task :deploy do
|
6
6
|
puts "Creating authorized_keys file ..."
|
7
7
|
CapSshKeyMan::PublicKeyCombiner.combine_developer_public_keys
|
8
8
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cap-ssh-key-man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael He
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-12-
|
18
|
+
date: 2011-12-16 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|