protected function initConfig(Filesystem $fs, $rootDir)
    {
        $bundleDir = $this->getBundleVendorDir();
        $path = $this->getCapistranoDir();

        if (!$fs->exists($path.'/deploy.rb') || !$fs->exists($path.'/deploy/production.rb')) {
            return $fs->mirror($bundleDir.'/Resources/config/capistrano', $path);
        }

        $fs->remove($path.'/deploy.rb');
        $fs->remove($path.'/deploy');
        $fs->remove($path);

        return $fs->mirror($bundleDir.'/Resources/config/capistrano', $path);
    }
protected function initConfig(Filesystem $fs, $rootDir)
    {
        $bundleDir = $this->getBundleVendorDir();
        $path = $this->getCapistranoDir();

        if (!$fs->exists($path.'/deploy.rb') || !$fs->exists($path.'/deploy/production.rb')) {
            return $fs->mirror($bundleDir.'/Resources/config/capistrano', $path);
        }

        $fs->remove($path.'/deploy.rb');
        $fs->remove($path.'/deploy');
        $fs->remove($path);

        return $fs->mirror($bundleDir.'/Resources/config/capistrano', $path);
    }
protected function initConfig ( Filesystem $ fs , $ rootDir ) { $ bundleDir = $ this -> getBundleVendorDir ( ) ; $ path = $ this -> getCapistranoDir ( ) ; if ( ! $ fs -> exists ( $ path . '/deploy.rb' ) || ! $ fs -> exists ( $ path . '/deploy/production.rb' ) ) { return $ fs -> mirror ( $ bundleDir . '/Resources/config/capistrano' , $ path ) ; } $ fs -> remove ( $ path . '/deploy.rb' ) ; $ fs -> remove ( $ path . '/deploy' ) ; $ fs -> remove ( $ path ) ; return $ fs -> mirror ( $ bundleDir . '/Resources/config/capistrano' , $ path ) ; }
Dump capistrano configuration skin from Resources directory.

@param Filesystem $fs
@param string     $rootDir Application root dir
Dump capistrano configuration skin from Resources directory .