sct 0.1.23 → 0.1.28

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
  SHA256:
3
- metadata.gz: 795f84864a77f3e67efdbba2318ba62ca9958f665512f8d0b0f52eaffef5d191
4
- data.tar.gz: 91ca3561de5f9418aaad5d99faf4f2d38cedf5e0063723ddad774345c96bff1d
3
+ metadata.gz: 2795077123ba193f891933659f88c61cb4a986ebc4a5c7bf8ced2fd9b9b54a97
4
+ data.tar.gz: 8478af6c3a869f524b09bc607ae09acbc48eed401777366947fc270a39166a2b
5
5
  SHA512:
6
- metadata.gz: feffcc74dba1ebdcce727e9718f70d88d22bacc6643d17a69f2dc05716bd7c440e95988a2387421185f6e0d0ea0294ad83cad166759a570fa70cd649120943fc
7
- data.tar.gz: e40cbed1e28216b1e68190eef67e383966015bae5c6ad24ddcac745826279a01175ce42021aa175fe93e755aa154f2e6f51effc0c5a2e3a2c88f7623de2aa118
6
+ metadata.gz: deecf2931622dda191ee00ffc6412a41c7aa4ac8df88006f8eeab183c8d50c543fb2d25f5012c47157f0faa1208431d450716e9b6f50506991aaa1a5f3e95dbc
7
+ data.tar.gz: afcf8914cbd3efba0e46764b5ed8633f570ec2e9b272a70a28cf48d11fd29bd41beaa1b9cd4896a263f99d657835fccb5329a245a160a009a47f17a4915589cb
@@ -42,6 +42,17 @@ module Cluster
42
42
  end
43
43
  end
44
44
 
45
+ command :restart do |c|
46
+
47
+ c.syntax = 'sct cluster restart'
48
+ c.description = 'restart the cluster (this is a short hand for sct cluster down && sct cluster up)'
49
+
50
+ c.action do |args, options|
51
+ Cluster::Runner.new.down
52
+ Cluster::Runner.new.launch
53
+ end
54
+ end
55
+
45
56
  command :reset do |c|
46
57
 
47
58
  c.syntax = 'sct cluster reset'
@@ -30,6 +30,10 @@ module Sct
30
30
  {
31
31
  host: "docs.spend.cloud.local",
32
32
  comment: "The spend cloud documentation url"
33
+ },
34
+ {
35
+ host: "henk.spend.cloud.local",
36
+ comment: "The spend cloud Henk web-interface"
33
37
  }
34
38
  ]
35
39
 
@@ -50,6 +50,20 @@ module Sct
50
50
 
51
51
  end
52
52
 
53
+ command :'cluster' do |c|
54
+
55
+ c.syntax = 'sct cluster'
56
+ c.description = 'make changes to the cluster'
57
+
58
+ end
59
+
60
+ command :'shell' do |c|
61
+
62
+ c.syntax = 'sct shell'
63
+ c.description = 'run commands from the shell using docker containers'
64
+
65
+ end
66
+
53
67
  run!
54
68
  end
55
69
  end
@@ -1,3 +1,3 @@
1
1
  module Sct
2
- VERSION = "0.1.23"
2
+ VERSION = "0.1.28"
3
3
  end
@@ -35,10 +35,10 @@ module SctCore
35
35
  def self.operatingSystem
36
36
  proc = `uname -a`
37
37
 
38
- case proc
39
- when /Microsoft/
38
+ case proc.downcase
39
+ when /microsoft/
40
40
  os = WINDOWS
41
- when /Darwin/
41
+ when /darwin/
42
42
  os = MAC_OS
43
43
  else
44
44
  os = UBUNTU
@@ -13,12 +13,20 @@ module Shell
13
13
  self.set_pwd_as_volume("/var/www")
14
14
  self.set_current_user_and_group
15
15
  self.set_entrypoint("php")
16
- self.set_environment_variables(get_service_ip_and_port)
16
+ self.set_environment_variables(self.get_environment_variables)
17
17
  end
18
18
 
19
- def self.get_service_ip_and_port
20
- service_names = %w[mysql-service redis-service]
19
+ def self.get_environment_variables
21
20
  environment_variables = {}
21
+ environment_variables.store("ENVIRONMENT", "local")
22
+
23
+ environment_variables = self.add_service_ip_and_port(environment_variables)
24
+
25
+ return environment_variables
26
+ end
27
+
28
+ def self.add_service_ip_and_port(environment_variables)
29
+ service_names = %w[mysql-service redis-service]
22
30
 
23
31
  minikube_status
24
32
 
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.23
4
+ version: 0.1.28
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-06-12 00:00:00.000000000 Z
11
+ date: 2020-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored