Kirby\Cli\Command\Plugin::prepare PHP Method

prepare() protected method

protected prepare ( )
    protected function prepare()
    {
        // check for an existing field with the same name
        if (!$this->sourceExists()) {
            throw new RuntimeException('The correct source for the plugin is missing');
        }
        dir::make(dirname($this->destination()));
    }