Skip to content

Commit c622ed6

Browse files
committed
Updated commands
1 parent 4bf684e commit c622ed6

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

commands/loadfixture

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

33
cd /var/www/soisy/backend
4-
php app/console soisy:load:fixtures --no-interaction --delete-contracts ../docs/features/fixtures/ $1
4+
php app/console soisy:load:fixtures --no-interaction --delete-contracts ../docs/fixtures/build $1

commands/protractor

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
cd /var/www/soisy/webapp/scripts/
4-
./node_modules/protractor/bin/protractor protractor-conf.js --specs /var/www/soisy/webapp/spec/$1
4+
5+
if [[ $1 == *SpecShop.js ]]; then
6+
./node_modules/protractor/bin/protractor protractor-conf-shop.js --specs /var/www/soisy/docs/specs/$1
7+
else
8+
./node_modules/protractor/bin/protractor protractor-conf.js --specs /var/www/soisy/docs/specs/$1
9+
fi

completions/_loadfixture

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#compdef loadfixture
22

3-
_files -W /var/www/soisy/docs/features/fixtures/
3+
_files -W /var/www/soisy/docs/fixtures/build/

completions/_protractor

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#compdef protractor
22

3-
_files -W /var/www/soisy/webapp/spec/
3+
_files -W /var/www/soisy/docs/specs/

zshrc

+10
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,13 @@ source $ZSH/oh-my-zsh.sh
8888

8989
PROMPT='%{%f%b%k%}$(build_prompt)
9090
%# '
91+
92+
# The next line updates PATH for the Google Cloud SDK.
93+
if [ -f /home/vagrant/google-cloud-sdk/path.zsh.inc ]; then
94+
source '/home/vagrant/google-cloud-sdk/path.zsh.inc'
95+
fi
96+
97+
# The next line enables shell command completion for gcloud.
98+
if [ -f /home/vagrant/google-cloud-sdk/completion.zsh.inc ]; then
99+
source '/home/vagrant/google-cloud-sdk/completion.zsh.inc'
100+
fi

0 commit comments

Comments
 (0)