rosh 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/rosh.rb +5 -1
- data/lib/rosh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 426c909983bae34fc5156c6b5b870b6bb7c44d59
|
4
|
+
data.tar.gz: ad06ec7e8b7ccd3e49a610e49559216b981a797d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df2cf0d4f31ab1564f9ed88b9a49ec52ce9fbc41511d2fc466fe8002310e9deea40234429036d999bfd3ad2da3f77bef216e27cabc327454f7be5915c0c154e2
|
7
|
+
data.tar.gz: d8b156ba7a8f4f1b4f6816ad6d429cf60addeee82d5b46091f760a4c009f2cd1cce97aef0dd5c91163726f56831e446833d8a611d7ecfeb55feda46983614bfe
|
data/README.md
CHANGED
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)
|
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
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
|
+
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-
|
11
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|