Airship\Hangar\Commands\Assemble::fire PHP 메소드

fire() 공개 메소드

Execute the assemble command
public fire ( array $args = [] ) : boolean
$args array
리턴 boolean
    public function fire(array $args = []) : bool
    {
        $this->getSession();
        // Create a workspace directory:
        $workspace = $this->createWorkspace();
        $this->pharStub = $workspace . DIRECTORY_SEPARATOR . 'index.php';
        $this->buildPhar($workspace, $args);
        if (!\in_array('build_history', $this->config)) {
            $this->config['build_history'] = [];
        }
        $dt = new \DateTime('now');
        $this->config['build_history'][] = ['name' => $this->pharname, 'path' => AIRSHIP_LOCAL_CONFIG . DIRECTORY_SEPARATOR . $this->pharname, 'date' => $dt->format('Y-m-d H:i:s'), 'signed' => false];
        // Unless we passed --no-flush, we nuke this first
        if (!\in_array('--no-flush', $args)) {
            $this->session = [];
        }
        return true;
    }