ssh-key-sync-man 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -45,9 +45,9 @@ Usage
45
45
 
46
46
  Generate alias file for everyone, for example:
47
47
 
48
- alias myasics_app1="ssh app@host"
49
- alias myasics_app2="ssh app@host"
50
- alias myasics_db="ssh app@host"
51
- alias myasics_staging="ssh app@host"
48
+ alias serverA_app1="ssh app@host"
49
+ alias serverB_app2="ssh app@host"
50
+ alias serverC_db="ssh app@host"
51
+ alias serverD_staging="ssh app@host"
52
52
 
53
53
  You can copy and paste into your .bashrc or .bash_profile
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.2.0
@@ -18,15 +18,16 @@ module SshKeyMan
18
18
  servers = YAML::load_file(server_list_path)['servers'][group]
19
19
  raise "No Server Group: #{group}" if servers.size == 0
20
20
  servers.each do |server_info|
21
- upload! server_info["host"], server_info["user"], source, dest
21
+ upload! server_info["host"], server_info["port"]||"22", server_info["user"], source, dest
22
22
  end
23
23
  end
24
24
 
25
25
  # upload a file to a remote server
26
26
  #
27
- def self.upload! host, user, source, dest
27
+ def self.upload! host, port, user, source, dest
28
28
  puts "coping file from #{source} to #{user}@#{host}:#{dest}"
29
- `scp #{source} #{user}@#{host}:#{dest}`
29
+
30
+ `scp -P #{port} #{source} #{user}@#{host}:#{dest}`
30
31
  raise "upload failed" if $?.exitstatus != 0
31
32
  end
32
33
  end
@@ -4,15 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{ssh-key-sync-man}
8
- s.version = "0.1.5"
7
+ s.name = "ssh-key-sync-man"
8
+ s.version = "0.2.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-06-20}
13
- s.default_executable = %q{ssh-key-sync-man}
14
- s.description = %q{Manage all your servers' auto login ssh-keys. One-command-line adding or removing any ssh-key for all servers.}
15
- s.email = %q{hlxwell@gmail.com}
12
+ s.date = "2011-12-02"
13
+ s.description = "Manage all your servers' auto login ssh-keys. One-command-line adding or removing any ssh-key for all servers."
14
+ s.email = "hlxwell@gmail.com"
16
15
  s.executables = ["ssh-key-sync-man"]
17
16
  s.extra_rdoc_files = [
18
17
  "LICENSE.txt",
@@ -34,11 +33,11 @@ Gem::Specification.new do |s|
34
33
  "test/helper.rb",
35
34
  "test/test_ssh-key-sync-man.rb"
36
35
  ]
37
- s.homepage = %q{http://github.com/hlxwell/ssh-key-sync-man}
36
+ s.homepage = "http://github.com/hlxwell/ssh-key-sync-man"
38
37
  s.licenses = ["MIT"]
39
38
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.5.0}
41
- s.summary = %q{Manage all your servers' auto login ssh-keys. One-command-line adding or removing any ssh-key for all servers.}
39
+ s.rubygems_version = "1.8.10"
40
+ s.summary = "Manage all your servers' auto login ssh-keys. One-command-line adding or removing any ssh-key for all servers."
42
41
 
43
42
  if s.respond_to? :specification_version then
44
43
  s.specification_version = 3
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssh-key-sync-man
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 5
10
- version: 0.1.5
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael He
@@ -15,11 +15,9 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-20 00:00:00 +08:00
19
- default_executable: ssh-key-sync-man
18
+ date: 2011-12-02 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: shoulda
23
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
22
  none: false
25
23
  requirements:
@@ -29,11 +27,11 @@ dependencies:
29
27
  segments:
30
28
  - 0
31
29
  version: "0"
30
+ requirement: *id001
32
31
  prerelease: false
33
32
  type: :development
34
- requirement: *id001
33
+ name: shoulda
35
34
  - !ruby/object:Gem::Dependency
36
- name: bundler
37
35
  version_requirements: &id002 !ruby/object:Gem::Requirement
38
36
  none: false
39
37
  requirements:
@@ -45,11 +43,11 @@ dependencies:
45
43
  - 0
46
44
  - 0
47
45
  version: 1.0.0
46
+ requirement: *id002
48
47
  prerelease: false
49
48
  type: :development
50
- requirement: *id002
49
+ name: bundler
51
50
  - !ruby/object:Gem::Dependency
52
- name: jeweler
53
51
  version_requirements: &id003 !ruby/object:Gem::Requirement
54
52
  none: false
55
53
  requirements:
@@ -61,11 +59,11 @@ dependencies:
61
59
  - 6
62
60
  - 2
63
61
  version: 1.6.2
62
+ requirement: *id003
64
63
  prerelease: false
65
64
  type: :development
66
- requirement: *id003
65
+ name: jeweler
67
66
  - !ruby/object:Gem::Dependency
68
- name: rcov
69
67
  version_requirements: &id004 !ruby/object:Gem::Requirement
70
68
  none: false
71
69
  requirements:
@@ -75,9 +73,10 @@ dependencies:
75
73
  segments:
76
74
  - 0
77
75
  version: "0"
76
+ requirement: *id004
78
77
  prerelease: false
79
78
  type: :development
80
- requirement: *id004
79
+ name: rcov
81
80
  description: Manage all your servers' auto login ssh-keys. One-command-line adding or removing any ssh-key for all servers.
82
81
  email: hlxwell@gmail.com
83
82
  executables:
@@ -102,7 +101,6 @@ files:
102
101
  - ssh-key-sync-man.gemspec
103
102
  - test/helper.rb
104
103
  - test/test_ssh-key-sync-man.rb
105
- has_rdoc: true
106
104
  homepage: http://github.com/hlxwell/ssh-key-sync-man
107
105
  licenses:
108
106
  - MIT
@@ -132,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
130
  requirements: []
133
131
 
134
132
  rubyforge_project:
135
- rubygems_version: 1.5.0
133
+ rubygems_version: 1.8.10
136
134
  signing_key:
137
135
  specification_version: 3
138
136
  summary: Manage all your servers' auto login ssh-keys. One-command-line adding or removing any ssh-key for all servers.