sct 1.0.5 → 1.0.6
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 +4 -4
- data/sct/lib/sct/commands/dev.rb +7 -1
- data/sct/lib/sct/commands_generator.rb +1 -0
- data/sct/lib/sct/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1fc131f8bc317386225d5f4fc54e8a3949b890ed962478c76e4d0cf61a6c24c7
|
|
4
|
+
data.tar.gz: 8b5b694782cb53883193fcb79192b016e0a53085e492fa3ddd2222348186df16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d05370cc4b9c87de1d7dcdd2895003b8ef3c3d80175e1f5280ce28e66ab2d004387db2f949fbefd867627481171b64392763203105907567220936e49e794561
|
|
7
|
+
data.tar.gz: a6f5276d96f817ee6ef80b6323f6a184eb72a389a0fd99c2ed6595c9583ebbc67114f575bc19e2deaab8bed0f4293d9d48c2b9e26e977abfb847af80e606d859
|
data/sct/lib/sct/commands/dev.rb
CHANGED
|
@@ -38,7 +38,13 @@ module Sct
|
|
|
38
38
|
container = service_spec["container_name"]
|
|
39
39
|
command = service_spec["command"] || ""
|
|
40
40
|
|
|
41
|
-
env = {
|
|
41
|
+
env = {
|
|
42
|
+
"PUID" => `id -u`.chomp,
|
|
43
|
+
"PGID" => `id -g`.chomp,
|
|
44
|
+
"HOST_MACHINE_IP" => (options.wsl_debugger ? `hostname -I | awk '{print $1}'` : `powershell.exe -c '(Test-Connection -ComputerName $env:computername -count 1).ipv4address.IPAddressToString' | dos2unix`).chomp,
|
|
45
|
+
"IDE_DEBUG_KEY" => "PHPSTORM",
|
|
46
|
+
"IDE_DEBUG_SERVER" => "docker",
|
|
47
|
+
}
|
|
42
48
|
|
|
43
49
|
if options.pull
|
|
44
50
|
return unless dc_dev "pull"
|
|
@@ -47,6 +47,7 @@ module Sct
|
|
|
47
47
|
c.description = 'start development container in the current directory'
|
|
48
48
|
c.option '--build', '(re)build images before starting'
|
|
49
49
|
c.option '--pull', 'pull latest images before starting'
|
|
50
|
+
c.option '--wsl-debugger', 'use if running the PHP debugger from WSL'
|
|
50
51
|
|
|
51
52
|
c.action do |args, options|
|
|
52
53
|
Sct::DevCommand.new.execute args, options
|
data/sct/lib/sct/version.rb
CHANGED
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: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Reshad Farid
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04-
|
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colored
|
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
248
248
|
- !ruby/object:Gem::Version
|
|
249
249
|
version: '0'
|
|
250
250
|
requirements: []
|
|
251
|
-
rubygems_version: 3.
|
|
251
|
+
rubygems_version: 3.1.2
|
|
252
252
|
signing_key:
|
|
253
253
|
specification_version: 4
|
|
254
254
|
summary: Spend Cloud Tool.
|