rosh 0.4.0 → 0.5.0

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 +1 -0
  3. data/lib/rosh.rb +5 -1
  4. data/lib/rosh/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63051cbc3ebc6dff450adf0b743bdbc84b8d7175
4
- data.tar.gz: bf806793eac433c0c9fed367d1d774a155884979
3
+ metadata.gz: 426c909983bae34fc5156c6b5b870b6bb7c44d59
4
+ data.tar.gz: ad06ec7e8b7ccd3e49a610e49559216b981a797d
5
5
  SHA512:
6
- metadata.gz: 4c988c653261d9929b5c2c7456988c47d84f2fd7f4185f48845b028652ac28f4ca7602a5d3a96e0e23e1d021006fab56876d944cc3b86a93a6832dcd5bf5761a
7
- data.tar.gz: c01022ea292846e22cdb2b1b3323c1114a0bc0ea6cb8377274afe9499c92158219d715b7a0e85037cc779d0520f06927d140b24df26e815dbb22eb2e6a5dc07c
6
+ metadata.gz: df2cf0d4f31ab1564f9ed88b9a49ec52ce9fbc41511d2fc466fe8002310e9deea40234429036d999bfd3ad2da3f77bef216e27cabc327454f7be5915c0c154e2
7
+ data.tar.gz: d8b156ba7a8f4f1b4f6816ad6d429cf60addeee82d5b46091f760a4c009f2cd1cce97aef0dd5c91163726f56831e446833d8a611d7ecfeb55feda46983614bfe
data/README.md CHANGED
@@ -24,6 +24,7 @@ Or install it yourself as:
24
24
  -a alive-interval Set ssh option ServerAliveInterval. Default: 5
25
25
  -e escape Set the escape charactor of the outer screen session.
26
26
  Default: "^t"
27
+ -I interval Reconnection interval.
27
28
 
28
29
  To detach the outer screen session,
29
30
 
data/lib/rosh.rb CHANGED
@@ -24,6 +24,8 @@ class Rosh
24
24
  # check ~/.ssh/config to resolve alias name
25
25
  config = Net::SSH::Config.for(@host)
26
26
  @host = config[:host_name] if config[:host_name]
27
+ @ssh_opts << "-l #{config[:user]}" if config[:user]
28
+ @ssh_opts << "-p #{config[:port]}" if config[:port]
27
29
  @first_try = true
28
30
  end
29
31
 
@@ -52,7 +54,9 @@ class Rosh
52
54
  end
53
55
 
54
56
  private
55
- def sh(a, r=nil) system "ssh #{resolv} 'screen -S #{@name} #{a}' #{r}" end
57
+ def sh(a, r=nil)
58
+ system "ssh #{resolv} #{@ssh_opts*' '} 'screen -S #{@name} #{a}' #{r}"
59
+ end
56
60
 
57
61
  def resolv
58
62
  uri = URI("//#{@host}")
data/lib/rosh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Rosh
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rosh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Takiuchi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-26 00:00:00.000000000 Z
11
+ date: 2013-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler