salticid 0.9.8 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -2
- data/bin/salticid +16 -0
- data/lib/salticid/interface.rb +1 -0
- data/lib/salticid/version.rb +1 -1
- metadata +27 -15
- checksums.yaml +0 -7
data/README.markdown
CHANGED
@@ -278,8 +278,8 @@ expansion.
|
|
278
278
|
An example
|
279
279
|
---
|
280
280
|
|
281
|
-
Take a look at Jepsen's salticid config:
|
282
|
-
https://github.com/aphyr/jepsen/blob/
|
281
|
+
Take a look at Jepsen's, old salticid config:
|
282
|
+
https://github.com/aphyr/jepsen/blob/old/salticid/main.rb
|
283
283
|
|
284
284
|
Caveats
|
285
285
|
---
|
data/bin/salticid
CHANGED
@@ -79,6 +79,22 @@ end
|
|
79
79
|
|
80
80
|
Trollop::die 'Nothing to do' if task.nil? and opts[:exec].nil?
|
81
81
|
|
82
|
+
# SSH
|
83
|
+
# Hey let's just pile hacks on top of hacks here, I'm sure nobody will be
|
84
|
+
# confused by it
|
85
|
+
if task == 'ssh'
|
86
|
+
# Construct SSH-friendly identifiers
|
87
|
+
hosts = hosts.map do |host|
|
88
|
+
"#{host.user}@#{host.name}"
|
89
|
+
end
|
90
|
+
|
91
|
+
if hosts.count == 1
|
92
|
+
exec 'ssh', hosts.first
|
93
|
+
else
|
94
|
+
exec 'cssh', *hosts
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
82
98
|
# Run commands on the hosts
|
83
99
|
Thread.abort_on_exception = true
|
84
100
|
interface = Salticid::Interface.new @h
|
data/lib/salticid/interface.rb
CHANGED
data/lib/salticid/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salticid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Kyle Kingsbury
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2015-05-27 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: trollop
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,57 +30,65 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: net-scp
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- - '>='
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: '0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- - '>='
|
43
|
+
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '0'
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: net-ssh
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- - '>='
|
51
|
+
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- - '>='
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: net-ssh-gateway
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
|
-
- - '>='
|
67
|
+
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
61
69
|
version: '0'
|
62
70
|
type: :runtime
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
|
-
- - '>='
|
75
|
+
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
68
77
|
version: '0'
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: net-ssh-multi
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
|
-
- - '>='
|
83
|
+
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
75
85
|
version: '0'
|
76
86
|
type: :runtime
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
|
-
- - '>='
|
91
|
+
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
82
93
|
version: '0'
|
83
94
|
description:
|
@@ -116,25 +127,26 @@ files:
|
|
116
127
|
- bin/salticid
|
117
128
|
homepage: https://github.com/aphyr/salticid
|
118
129
|
licenses: []
|
119
|
-
metadata: {}
|
120
130
|
post_install_message:
|
121
131
|
rdoc_options: []
|
122
132
|
require_paths:
|
123
133
|
- lib
|
124
134
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
125
136
|
requirements:
|
126
|
-
- - '>='
|
137
|
+
- - ! '>='
|
127
138
|
- !ruby/object:Gem::Version
|
128
139
|
version: 1.8.7
|
129
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
+
none: false
|
130
142
|
requirements:
|
131
|
-
- - '>='
|
143
|
+
- - ! '>='
|
132
144
|
- !ruby/object:Gem::Version
|
133
145
|
version: '0'
|
134
146
|
requirements: []
|
135
147
|
rubyforge_project:
|
136
|
-
rubygems_version:
|
148
|
+
rubygems_version: 1.8.25
|
137
149
|
signing_key:
|
138
|
-
specification_version:
|
150
|
+
specification_version: 3
|
139
151
|
summary: Run commands over SSH, with Ruby magic.
|
140
152
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 18d94d9cf5f66f05559c0c92dd49b4adc6de060f
|
4
|
-
data.tar.gz: 53528e2a51a6f6ab2b23d9f066a070b236d54d5e
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: c7144fe249fca65c9013bd41d58b971af2225e470510b6eb0e6eefe30562faacbc47164432e169bf947a0e5cd7ace3968e4d8f44021946fb2ab572d698753b03
|
7
|
-
data.tar.gz: 4edada67749f62971f0263c01c8a44b8d17632e1ffd1ea30844a53b94696c5c70e7192fdf87ad08d42a434bf535236cd935b0a3da44fffcb8168c19b0add526e
|