22 regels
534 B
PHP
22 regels
534 B
PHP
<?php
|
|
|
|
namespace Deployer;
|
|
|
|
set('db_conf_path', function () {
|
|
return '{{deploy_path}}/database/.my.cnf';
|
|
});
|
|
|
|
set('database_configured', function() {
|
|
return has('db_conf_path') && strlen(get('db_conf_path')) && test("[ -f {{db_conf_path}} ]");
|
|
});
|
|
|
|
set('mysql_configured', function() {
|
|
return has('bin/mysql') && strlen(get('bin/mysql')) &&
|
|
get('database_configured');
|
|
});
|
|
|
|
set('mysqldump_configured', function() {
|
|
return has('bin/mysql') && strlen(get('bin/mysql')) &&
|
|
get('database_configured');
|
|
});
|