src/Rocketeer/Services/Ignition/PluginsIgniter.php
protected function publishConfiguration($path)
    {
        // Compute and create the destination folder
        $destination = $this->paths->getConfigurationPath().'/plugins';

        // Export configuration
        $files = $this->files->listFiles($path, true);
        foreach ($files as $file) {
            $fileDestination = $destination.DS.$file['basename'];
            if ($this->files->has($destination) && !$this->force) {
                continue;
            }

            $this->files->forceCopy($file['path'], $fileDestination);
            $this->explainer->success('Published <comment>'.str_replace($this->paths->getBasePath(), null, $fileDestination).'</comment>');
        }
    }
protected function publishConfiguration($path)
    {
        // Compute and create the destination folder
        $destination = $this->paths->getConfigurationPath().'/plugins';

        // Export configuration
        $files = $this->files->listFiles($path, true);
        foreach ($files as $file) {
            $fileDestination = $destination.DS.$file['basename'];
            if ($this->files->has($destination) && !$this->force) {
                continue;
            }

            $this->files->forceCopy($file['path'], $fileDestination);
            $this->explainer->success('Published <comment>'.str_replace($this->paths->getBasePath(), null, $fileDestination).'</comment>');
        }
    }
protected function publishConfiguration ( $ path ) { // Compute and create the destination folder $ destination = $ this -> paths -> getConfigurationPath ( ) . '/plugins' ; // Export configuration $ files = $ this -> files -> listFiles ( $ path , true ) ; foreach ( $ files as $ file ) { $ fileDestination = $ destination . DS . $ file [ 'basename' ] ; if ( $ this -> files -> has ( $ destination ) && ! $ this -> force ) { continue ; } $ this -> files -> forceCopy ( $ file [ 'path' ] , $ fileDestination ) ; $ this -> explainer -> success ( 'Published <comment>' . str_replace ( $ this -> paths -> getBasePath ( ) , null , $ fileDestination ) . '</comment>' ) ; } }
Publishes a configuration within a classic application.

@param string $path

@return bool
Publishes a configuration within a classic application .