rosh 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/lib/rosh.rb +3 -5
  4. data/lib/rosh/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f03ab9e65cf17ee6327d425892ec00fcd19b92d
4
- data.tar.gz: 1609dced29c0bb1b548b882358648e83fa6b71f0
3
+ metadata.gz: 80f3a67a783c808654e6ddc08867858e5f0f8970
4
+ data.tar.gz: 23940c39a4503f78ab123dc4ef0b6a7c66c2828f
5
5
  SHA512:
6
- metadata.gz: c887a87750fa74cdede9dd1b70d38de6d3db34eb142a1b77f2ec33011deff74596f6c23fa7d23f8fbf8811cb1c78c4123aafa12394ebc37567cb1237f04758ca
7
- data.tar.gz: 46ad0b56a3c47ddb99963f9bad25c71b1831e8d2d1e0bf080915e36c0a1790d23ddac4e92285e121e0802dabaa0c946cc72805aa0a2c170020ccff986789c310
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
 
@@ -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.on '-n' do
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
 
@@ -1,3 +1,3 @@
1
1
  class Rosh
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rosh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Takiuchi