sct 0.1.23 → 0.1.28
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2795077123ba193f891933659f88c61cb4a986ebc4a5c7bf8ced2fd9b9b54a97
|
4
|
+
data.tar.gz: 8478af6c3a869f524b09bc607ae09acbc48eed401777366947fc270a39166a2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
@@ -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
|
data/sct/lib/sct/version.rb
CHANGED
@@ -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(
|
16
|
+
self.set_environment_variables(self.get_environment_variables)
|
17
17
|
end
|
18
18
|
|
19
|
-
def self.
|
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.
|
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-
|
11
|
+
date: 2020-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored
|