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);
    }