Class: GithubBackup::Gist

Inherits:
Repository show all
Defined in:
lib/github-backup/gist.rb

Instance Attribute Summary

Attributes inherited from Repository

#sawyer_resource, #shell

Instance Method Summary collapse

Methods inherited from Repository

#backup, #initialize

Constructor Details

This class inherits a constructor from GithubBackup::Repository

Instance Method Details

#backup_pathObject



8
9
10
11
12
13
14
# File 'lib/github-backup/gist.rb', line 8

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

#clone_urlObject



4
5
6
# File 'lib/github-backup/gist.rb', line 4

def clone_url
  sawyer_resource.git_pull_url
end