contexto 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contexto/ssh.rb +7 -3
- data/lib/contexto/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: 78fbe739396428327e20b3129bf655c6d0120703
|
4
|
+
data.tar.gz: 36f26c6666cd98e77d8eea351e5a603aa5bdfe23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf06c92be8e910ec3c680220d7d9e0ef44a6b3bfbe5881d1e54a9c7f682ad45e44801fb7af2963bef78ea936e8004e1f3f5fafebe529fafda84fd4a66a8973bc
|
7
|
+
data.tar.gz: 35200ed4f5621d63f43f5d575f3215f1e5bc8b926ac71b0fec22d2f58efd6cca1b4f232d19ba2da58007193bba65bf8c0dcadf5689881812d43b799094bb8c11
|
data/lib/contexto/ssh.rb
CHANGED
@@ -15,8 +15,12 @@ module Contexto
|
|
15
15
|
@options = {}
|
16
16
|
end
|
17
17
|
|
18
|
+
def term
|
19
|
+
'env TERM=xterm'
|
20
|
+
end
|
21
|
+
|
18
22
|
def console
|
19
|
-
exec "#{ssh_cmd} #{cmd} bin/rails c'\""
|
23
|
+
exec "#{ssh_cmd} #{cmd} #{term} bin/rails c'\""
|
20
24
|
end
|
21
25
|
|
22
26
|
def ssh
|
@@ -28,11 +32,11 @@ module Contexto
|
|
28
32
|
end
|
29
33
|
|
30
34
|
def bash
|
31
|
-
exec "#{ssh_cmd} #{cmd} /bin/bash'\""
|
35
|
+
exec "#{ssh_cmd} #{cmd} #{term} /bin/bash'\""
|
32
36
|
end
|
33
37
|
|
34
38
|
def ssh_cmd
|
35
|
-
"ssh -t -A #{@bastion_host} \"ssh -t ec2-user@#{ipaddress} "
|
39
|
+
"TERM=xterm ssh -t -A #{@bastion_host} \"ssh -t ec2-user@#{ipaddress} "
|
36
40
|
end
|
37
41
|
|
38
42
|
def cmd
|
data/lib/contexto/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contexto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Turnbull
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|