simsim 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/simsim +1 -1
- data/lib/ssh_config.erb +2 -2
- metadata +23 -9
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/bin/simsim
CHANGED
@@ -32,7 +32,7 @@ end
|
|
32
32
|
|
33
33
|
@sites = Hash.new { |hash, key| hash[key] = Array.new }
|
34
34
|
|
35
|
-
Restfully::Session.new(@options
|
35
|
+
Restfully::Session.new(@options) do |grid, session|
|
36
36
|
grid.sites.each do |site|
|
37
37
|
site.clusters.each do |cluster|
|
38
38
|
@sites[site['uid']].push(cluster['uid'])
|
data/lib/ssh_config.erb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
### BEGIN AUTOGENERATED GRID'5000 CONFIGURATION (simsim) ###
|
2
2
|
|
3
3
|
Host <%= @sites.keys.sort.join(' ') %>
|
4
|
-
ProxyCommand ssh access.<%= @access_site %>.grid5000.fr nc -
|
4
|
+
ProxyCommand ssh access.<%= @access_site %>.grid5000.fr nc -w 120 %h.grid5000.fr %p 2> /dev/null
|
5
5
|
|
6
6
|
% @sites.keys.sort.each do |site|
|
7
7
|
Host <%= @sites[site].sort.map { |c| c + '-*' }.join(' ') %>
|
8
|
-
ProxyCommand ssh
|
8
|
+
ProxyCommand ssh access.<%= @access_site %>.grid5000.fr nc -w 120 $(echo %h | cut -d . -f 1).<%= site %>.grid5000.fr %p 2> /dev/null
|
9
9
|
StrictHostKeyChecking no
|
10
10
|
UserKnownHostsFile /dev/null
|
11
11
|
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simsim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Pierre Riteau
|
@@ -9,19 +14,24 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-05-26 00:00:00 +02:00
|
13
18
|
default_executable: simsim
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: restfully
|
17
|
-
|
18
|
-
|
19
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
20
25
|
requirements:
|
21
26
|
- - ">="
|
22
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 4
|
31
|
+
- 1
|
23
32
|
version: 0.4.1
|
24
|
-
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
25
35
|
description: simsim generates an ssh_config file allowing to easily connect from your workstation to all compute nodes in Grid'5000. Since it is based on an ERB template, the generated ssh_config can be customized at will.
|
26
36
|
email: priteau@gmail.com
|
27
37
|
executables:
|
@@ -53,21 +63,25 @@ rdoc_options:
|
|
53
63
|
require_paths:
|
54
64
|
- lib
|
55
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
56
67
|
requirements:
|
57
68
|
- - ">="
|
58
69
|
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 0
|
59
72
|
version: "0"
|
60
|
-
version:
|
61
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
62
75
|
requirements:
|
63
76
|
- - ">="
|
64
77
|
- !ruby/object:Gem::Version
|
78
|
+
segments:
|
79
|
+
- 0
|
65
80
|
version: "0"
|
66
|
-
version:
|
67
81
|
requirements: []
|
68
82
|
|
69
83
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.3.
|
84
|
+
rubygems_version: 1.3.7
|
71
85
|
signing_key:
|
72
86
|
specification_version: 3
|
73
87
|
summary: ssh_config generator for Grid'5000
|