Studio\Console\ScrapCommand::fire PHP Method

fire() protected method

protected fire ( )
    protected function fire()
    {
        $path = $this->input->getArgument('path');
        if ($this->abortDeletion($path)) {
            $this->io->note('Aborted.');
            return;
        }
        $package = Package::fromFolder($path);
        $this->config->removePackage($package);
        $this->io->note('Removing package...');
        $filesystem = new Filesystem();
        $filesystem->remove($path);
        $this->io->success('Package successfully removed.');
    }