Class: GithubBackup::Gist
Instance Attribute Summary
Attributes inherited from Repository
#sawyer_resource, #shell
Instance Method Summary
collapse
Methods inherited from Repository
#backup, #initialize
Instance Method Details
#backup_path ⇒ Object
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_url ⇒ Object
4
5
6
|
# File 'lib/github-backup/gist.rb', line 4
def clone_url
sawyer_resource.git_pull_url
end
|