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

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

Constructor.
public __construct ( )
    public function __construct()
    {
        $this->opt = new \Banago\PHPloy\Options(new \League\CLImate\CLImate());
        $this->cli = $this->opt->cli;
        $this->cli->backgroundGreen()->bold()->out('-------------------------------------------------');
        $this->cli->backgroundGreen()->bold()->out('|                     PHPloy                    |');
        $this->cli->backgroundGreen()->bold()->out('-------------------------------------------------');
        // Setup PHPloy
        $this->setup();
        if ($this->cli->arguments->defined('help')) {
            $this->cli->usage();
            return;
        }
        if ($this->cli->arguments->defined('init')) {
            $this->createSampleIniFile();
            return;
        }
        if ($this->cli->arguments->defined('version')) {
            $this->cli->bold()->info('PHPloy v' . $this->version);
            return;
        }
        if (file_exists("{$this->repo}/.git")) {
            $this->git = new \Banago\PHPloy\Git($this->repo);
            $this->deploy();
        } else {
            throw new \Exception("'{$this->repo}' is not a Git repository.");
        }
    }