Sha256: 4215e468b511cabfdb8590c786dd90ee75833247486128d4f8d4d609c1671c9b

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

module GitDuplicator
  # Mirror a repository
  class MirrorDuplicator < Duplicator
    protected

    def perform_clone_source
      from.bare_clone(clone_path)
    end

    def perform_mirror
      from.mirror(to.url)
    end

    def perform_clean_up
      FileUtils.rm_rf("#{clone_path}/#{from.name}")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_duplicator-1.0.0 lib/git_duplicator/duplicator/mirror_duplicator.rb