sct 0.1.29 → 0.1.30

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
  SHA256:
3
- metadata.gz: d96c99f55b060e2403cbc2e63dc4559bb14bb7fe7a3204c30c50591688a9ea3c
4
- data.tar.gz: fe5f3c027f2a334a83f31fc9ab11c43f85898db0fb1d04395bbb74fdd14b74ec
3
+ metadata.gz: 2dc9c664ca89d649033d4fcfdcad7e8d72d78b448d800caa8c8097ec1ea7ed47
4
+ data.tar.gz: f3cdba0dfbaacbf240e4f84f8530cb835308a19203999db78759b17d4eb18150
5
5
  SHA512:
6
- metadata.gz: 4608475ca7570f3422afc13eaf43c0d8429304e667e688ebfa90a3bc26f168a062e45122d22794615c1824a740dbcb501bc9f0b6175083a60dbc6b89606d5a25
7
- data.tar.gz: 8a5c1afac5d76c0fb820ee84d1edd9896a6c5bb51be0359600d4202bba035d1052ae18a1ffd6e9870e7c285952b230ecbf8e9dda6f2970e67ca2154b61ae1766
6
+ metadata.gz: 56c7e96250c79f3fdb4de6fab3358e4e6eb443f813064d88e9353a766eccecc1ad1c7f2c2878716347676e3c24de1d09456763ccc2c857d13eb6cd4f058f7593
7
+ data.tar.gz: 27543415be2aac23a5032b2b96bb7504dd12b5cc3d41f73c489251416d1d3bc3ddd83c8af71f7163b96b0bfe1c22a1f8f06e8c9992a5a54d279a89a40d3c90b6
@@ -98,6 +98,7 @@ module Cluster
98
98
 
99
99
  def post_start
100
100
  wait_for_pods
101
+ copy_proactive_accounts_file
101
102
  run_command "sudo sct hostfile"
102
103
  run_command "minikube tunnel &", { out: "/dev/null", err: "/dev/null" } if SctCore::Helper::is_windows? # leave this running detached forever in the background
103
104
  UI.success("\n✔️ You can visit your environment at 👉 https://spend-cloud.spend.cloud.local 👌")
@@ -292,6 +293,22 @@ module Cluster
292
293
  return Terminal::Table.new title: "Pods (namespace: #{namespace})".green, headings: ['Name', 'Status', 'Replicas ready'], rows: rows
293
294
  end
294
295
 
296
+ def copy_proactive_accounts_file
297
+ pod_id = pods().select {|pod| pod[:name].start_with?("proactive-config")}.first[:name]
298
+
299
+ begin
300
+ UI.important("Checking ProActive accounts file...")
301
+ run_command "kubectl exec #{pod_id} -- test -e /data/proactive_accounts.ini", [:out, :err] => File::NULL
302
+ rescue => e
303
+ UI.important("Copying ProActive accounts file to deployments...")
304
+ src_path = "#{Dir.home()}/development/spend-cloud/k8s/conf/proactive_accounts.ini"
305
+ command = "kubectl cp #{src_path} #{pod_id}:/data/proactive_accounts.ini"
306
+ run_command command
307
+ end
308
+
309
+ UI.success("ProActive accounts file is available")
310
+ end
311
+
295
312
  def run_command command, options = {}
296
313
  if ! system command, options
297
314
  raise command.red
@@ -1,3 +1,3 @@
1
1
  module Sct
2
- VERSION = "0.1.29"
2
+ VERSION = "0.1.30"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reshad Farid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-27 00:00:00.000000000 Z
11
+ date: 2020-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored
@@ -241,10 +241,10 @@ metadata:
241
241
  post_install_message:
242
242
  rdoc_options: []
243
243
  require_paths:
244
+ - shell/lib
244
245
  - cluster/lib
245
246
  - sct/lib
246
247
  - sct_core/lib
247
- - shell/lib
248
248
  required_ruby_version: !ruby/object:Gem::Requirement
249
249
  requirements:
250
250
  - - ">="
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
256
  - !ruby/object:Gem::Version
257
257
  version: '0'
258
258
  requirements: []
259
- rubygems_version: 3.0.6
259
+ rubygems_version: 3.1.2
260
260
  signing_key:
261
261
  specification_version: 4
262
262
  summary: Spend Cloud Tool.