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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a359d3e24ea773369a1510a6ae4a2f779fa5595f
4
- data.tar.gz: e003108abe607448ba06473d097e2568f3db9dbe
3
+ metadata.gz: 78fbe739396428327e20b3129bf655c6d0120703
4
+ data.tar.gz: 36f26c6666cd98e77d8eea351e5a603aa5bdfe23
5
5
  SHA512:
6
- metadata.gz: 70073fdcb5b77b58408dd92f42b213617e7c9a45e68eaf1b9a3c85588302aa8661586ef5f7a072cc493877102b7fde1f46e367ae0482f7bcddd4b92c4cc20e6e
7
- data.tar.gz: 9e12fbb8898d08e444130ec9bccf2be7832a213aa24d4e47895028a58b23dc585589a4e403833250ede9a40c4ed65e96ffedb743da819624f4a4879c0334f79e
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
@@ -1,4 +1,4 @@
1
1
  # Contexto version
2
2
  module Contexto
3
- VERSION = '0.4.2'.freeze
3
+ VERSION = '0.4.3'.freeze
4
4
  end
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.2
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-04-02 00:00:00.000000000 Z
11
+ date: 2018-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk