Skip to content

Commit 3e7be73

Browse files
committed
Move to another vendor
1 parent ff5736f commit 3e7be73

27 files changed

+343
-314
lines changed

.benchmark.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?php
22
/**
3-
* @link https://github.com/index0h/php-validator
3+
* @link https://github.com/ko-ko-ko/php-assert
44
* @copyright Copyright (c) 2015 Roman Levishchenko <[email protected]>
5-
* @license https://raw.github.com/index0h/php-validator/master/LICENSE
5+
* @license https://raw.github.com/ko-ko-ko/php-assert/master/LICENSE
66
*/
77
require_once __DIR__ . '/vendor/codeception/codeception/autoload.php';
88

99
use Symfony\Component\Console\Application;
10-
use index0h\validator\tests\commands\VariableBenchmarkCommand;
11-
use index0h\validator\tests\commands\RespectBenchmarkCommand;
12-
use index0h\validator\tests\commands\BeberleiBenchmarkCommand;
10+
use KoKoKo\assert\tests\commands\AssertBenchmarkCommand;
11+
use KoKoKo\assert\tests\commands\RespectBenchmarkCommand;
12+
use KoKoKo\assert\tests\commands\BeberleiBenchmarkCommand;
1313

1414
$app = new Application('Codeception', Codeception\Codecept::VERSION);
15-
$app->add(new VariableBenchmarkCommand('benchmark:variable'));
15+
$app->add(new AssertBenchmarkCommand('benchmark:variable'));
1616
$app->add(new RespectBenchmarkCommand('benchmark:respect'));
1717
$app->add(new BeberleiBenchmarkCommand('benchmark:beberlei'));
1818
$app->run();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

provision/init.sh .provision/init.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if [[ ! -d '/.provision-stuff' ]]; then
77
echo 'Created directory /.provision-stuff'
88
fi
99

10-
bash /vagrant/provision/system/execute-files.sh
10+
bash /vagrant/.provision/system/execute-files.sh
11+
bash /vagrant/.provision/system/dot-files.sh
1112

1213
clear

.provision/system/dot-files.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
shopt -s dotglob
4+
5+
for FILE in "/vagrant/.provision/files/dot/*.*"
6+
do
7+
FILE_NAME=$(basename "$FILE")
8+
9+
cp -r $FILE /home/vagrant/
10+
cp -r $FILE /root/
11+
12+
chown -R vagrant:vagrant /home/vagrant/$FILE_NAME
13+
chown -R root:root /root/$FILE_NAME
14+
done

provision/system/execute-files.sh .provision/system/execute-files.sh

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

3-
echo "Run scripts from /vagrant/provision/exec/"
3+
echo "Run scripts from /vagrant/.provision/exec/"
44

55
SCRIPT_LOG="/.provision-stuff/execute-files.txt"
66
TMP_ALL_PATH="/tmp/execute-files-all.txt"
77
TMP_EXECUTED_PATH="/tmp/execute-files-executed.txt"
8-
FILES_PATH="/vagrant/provision/exec/"
8+
FILES_PATH="/vagrant/.provision/exec/"
99
SPLIT="------------------------------------------------------------------"
1010

1111
if [[ ! -f $SCRIPT_LOG ]]; then
@@ -14,7 +14,7 @@ fi
1414

1515
cat $SCRIPT_LOG > $TMP_EXECUTED_PATH
1616

17-
find $FILES_PATH -maxdepth 1 -not -path '*/\.*' -type f \( ! -iname ".gitignore" \) | sort > $TMP_ALL_PATH
17+
find $FILES_PATH -maxdepth 1 -not -path $FILES_PATH'.*' -type f \( ! -iname ".gitignore" \) | sort > $TMP_ALL_PATH
1818

1919
FILES_TO_RUN=( `comm -13 $SCRIPT_LOG $TMP_ALL_PATH` )
2020

0 commit comments

Comments
 (0)