deis-interactive 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9aad06a37864a81afb2f7c0b9a17326f573b4f66
4
- data.tar.gz: 00de1bb25a9ba2ab7d27ad08c4d9ce7aac7279c9
3
+ metadata.gz: 990fc5adb8cf8c04d04e7ff131f2ca122e00f874
4
+ data.tar.gz: aea002d3cbef0d5ff35570d1f8cc2eea4bb94a3c
5
5
  SHA512:
6
- metadata.gz: 3ce3a94bb906cd7649a793bfc0cbd89554815261d409f71ce9a2d3dd97a29ae96a603207f007b192a326c15cfe526742d95a599a8fa22449d4fb91d5df80d6a8
7
- data.tar.gz: a6f01f8e4e361b78cc4e71148efc00124e63f9d12ed7d86c32feefe305c4d82499c777985eb5d583a095d6c70f35023ce58ea943a20006b369041f565e251903
6
+ metadata.gz: 2215e879faa4f33fae680277342cb1c1a9fd1d3708bd8f2a373c2eefc04b03482a27c846b0067fae269e6d3aec28ef0a96d7a2c3ad007abdbfb1041cdb746141
7
+ data.tar.gz: 9d5d75407c940d12b403be9c55d70ccf4609b74a1be97c275127f8b10dcd353bcba43288930ee2e954a387857554d9e0b5fa24128cc26b185cf30e3699d96091
@@ -1,4 +1,5 @@
1
1
  require_relative 'base'
2
+ require 'byebug'
2
3
  require "shellwords"
3
4
 
4
5
  module DeisInteractive
@@ -29,7 +30,7 @@ module DeisInteractive
29
30
 
30
31
  def perform
31
32
  puts "Execute #{args} on #{pod_id}"
32
- exec "kubectl exec -it --namespace #{app} #{pod_id} -- bash -c #{escaped_args}"
33
+ exec "kubectl exec -it --namespace #{app} #{pod_id} -- bash -c #{bash}"
33
34
  end
34
35
 
35
36
  def pod_id
@@ -41,6 +42,10 @@ module DeisInteractive
41
42
  sample_pod_id
42
43
  )
43
44
  end
45
+
46
+ def bash
47
+ Shellwords.escape(". /app/.profile.d/ruby.sh && PATH=/app/.heroku/node/bin:$PATH && #{escaped_args}")
48
+ end
44
49
  end
45
50
  end
46
51
  end
@@ -1,3 +1,3 @@
1
1
  module DeisInteractive
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deis-interactive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phuong Nguyen