Banago\PHPloy\PHPloy::setup PHP Метод

setup() публичный Метод

Setup CLI options.
public setup ( )
    public function setup()
    {
        $this->repo = getcwd();
        if ($this->cli->arguments->defined('debug')) {
            $this->debug = true;
        }
        if ($this->cli->arguments->defined('list')) {
            $this->listFiles = true;
        }
        if ($this->cli->arguments->defined('server')) {
            $this->server = $this->cli->arguments->get('server');
        }
        if ($this->cli->arguments->defined('sync')) {
            $this->sync = $this->cli->arguments->get('sync');
        }
        if ($this->cli->arguments->defined('rollback')) {
            $this->revision = $this->cli->arguments->get('rollback');
        }
        if ($this->cli->arguments->defined('submodules')) {
            $this->scanSubmodules = true;
        }
        if ($this->cli->arguments->defined('all')) {
            $this->deployAll = true;
        }
        if ($this->cli->arguments->defined('server')) {
            $this->init = true;
        }
        $this->repo = getcwd();
        $this->mainRepo = $this->repo;
    }