MiniAsset\Cli\BuildTask::execute PHP Method

execute() protected method

Build all the files declared in the Configuration object.
protected execute ( ) : void
return void
    protected function execute()
    {
        if ($this->cli->arguments->defined('bootstrap')) {
            $this->bootstrapApp();
        }
        $factory = new Factory($this->config());
        foreach ($factory->assetCollection() as $target) {
            $this->_buildTarget($factory, $target);
        }
        $this->cli->out('<green>Complete</green>');
        return 0;
    }