rosh 0.3.0 → 0.3.1
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.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/rosh.rb +3 -5
- data/lib/rosh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80f3a67a783c808654e6ddc08867858e5f0f8970
|
4
|
+
data.tar.gz: 23940c39a4503f78ab123dc4ef0b6a7c66c2828f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3337e1ce903648d26dfb737606701e6c50502a53a30a6e51d5f932ec2d7f946851d5e6a60224bdda0b37606cbd27d2a6e48f0e270e242c96228c599f952697c8
|
7
|
+
data.tar.gz: 560ea450e9b8da30f3e4e29eef1c8bc2238ebd78cc515e9c04a0f1b8e087e6a788ce7ee9f8c30e28c52d9267736cdf8f3b3482b8504513f6fbcd678568d8e9e6
|
data/README.md
CHANGED
@@ -19,7 +19,11 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
-
rosh hostname [GNU_screen_session_name]
|
22
|
+
rosh [options] hostname [GNU_screen_session_name]
|
23
|
+
|
24
|
+
-a alive-interval Set ssh option ServerAliveInterval. Default: 5
|
25
|
+
-e escape Set the escape charactor of the outer screen session.
|
26
|
+
Default: "^t"
|
23
27
|
|
24
28
|
To detach the outer screen session,
|
25
29
|
|
data/lib/rosh.rb
CHANGED
@@ -9,15 +9,13 @@ class Rosh
|
|
9
9
|
@ssh_opts = []
|
10
10
|
alive_interval = 5
|
11
11
|
@escape = '^t'
|
12
|
-
OptionParser.new.tap do |opt|
|
13
|
-
opt.
|
14
|
-
@ssh_opts << '-o UserKnownHostsFile=/dev/null'
|
15
|
-
@ssh_opts << '-o StrictHostKeyChecking=no'
|
16
|
-
end
|
12
|
+
OptionParser.new("test").tap do |opt|
|
13
|
+
opt.banner = 'Usage: rosh [options] hostname [session-name]'
|
17
14
|
opt.on('-a alive-interval'){|v| alive_interval = v.to_i}
|
18
15
|
opt.on('-e escape'){|v| @escape = v}
|
19
16
|
end.parse! args
|
20
17
|
@host, @name = *args, :default
|
18
|
+
abort 'hostname is required' if @host == :default
|
21
19
|
@ssh_opts << "-o ServerAliveInterval=#{alive_interval}"
|
22
20
|
@ssh_opts << "-o ServerAliveCountMax=1"
|
23
21
|
|
data/lib/rosh/version.rb
CHANGED