Sha256: 5acfd86156ea388ba74dacd24223e91bb32e682dc1940b22a32bff4932ebb596

Contents?: true

Size: 377 Bytes

Versions: 4

Compression:

Stored size: 377 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
backup_repos-0.3.0 lib/backup_repos/performers/github_gist.rb
backup_repos-0.2.1 lib/backup_repos/performers/github_gist.rb
backup_repos-0.2.0 lib/backup_repos/performers/github_gist.rb
backup_repos-0.1.0 lib/backup_repos/performers/github_gist.rb