Page MenuHomeDevCentral

D2923.id.diff
No OneTemporary

D2923.id.diff

diff --git a/roles/devserver/userland-software/dev.sls b/roles/devserver/userland-software/dev.sls
--- a/roles/devserver/userland-software/dev.sls
+++ b/roles/devserver/userland-software/dev.sls
@@ -90,18 +90,20 @@
- source_hash: 2cbaea7cfda1bb4299d863eb075e977c3f49055dd16d88529fae5150d48a84cb
- mode: 755
-/opt/phpdox.phar:
- file.managed:
- - source: https://github.com/theseer/phpdox/releases/download/0.12.0/phpdox-0.12.0.phar
- - source_hash: d60ddb2666e103f417510f59d60654efe616ada344f5366e2d0997aa3da921bf
- - mode: 755
-
/opt/phploc.phar:
file.managed:
- source: https://phar.phpunit.de/phploc-7.0.2.phar
- source_hash: 3d59778ec86faf25fd00e3a329b2f9ad4a3c751ca91601ea7dab70f887b0bf46
- mode: 755
+phpdox:
+ cmd.run:
+ - name: |
+ git clone --depth 1 https://github.com/nasqueron/phpdox
+ cd phpdox && composer install
+ - cwd: /opt
+ - creates: /opt/phpdox/phpdox
+
phpunit:
cmd.run:
- name: |
diff --git a/roles/devserver/userland-software/files/run-php-script.sh b/roles/devserver/userland-software/files/run-php-script.sh
--- a/roles/devserver/userland-software/files/run-php-script.sh
+++ b/roles/devserver/userland-software/files/run-php-script.sh
@@ -16,6 +16,8 @@
SCRIPT="vendor/bin/$COMMAND"
elif [ -f "/opt/$COMMAND.phar" ]; then
SCRIPT="/opt/$COMMAND.phar"
+elif [ -f "/opt/$COMMAND/$COMMAND" ]; then
+ SCRIPT="/opt/$COMMAND/$COMMAND"
elif [ -f "/opt/$COMMAND" ]; then
SCRIPT="/opt/$COMMAND"
else

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 23:21 (12 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2247512
Default Alt Text
D2923.id.diff (1 KB)

Event Timeline