Sha256: 748d9e102ef0373b9637d81f71f4639813a3a87d63aba035b304429c35e24e06

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

module BackupRepos
  module Performers
    class GithubGist < BaseGit
      def provider
        'GitHub'
      end

      def clone_url
        params.git_pull_url
      end

      def backup_path
        if params.owner
          "#{params.owner.login}/gists/#{params.id}.git"
        else
          "anonymous/gists/#{params.id}.git"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backup_repos-0.5.0 lib/backup_repos/performers/github_gist.rb
backup_repos-0.4.0 lib/backup_repos/performers/github_gist.rb