Class: Fourchette::Tarball

Inherits:
Object
  • Object
show all
Includes:
Logger
Defined in:
lib/fourchette/tarball.rb

Instance Method Summary collapse

Methods included from Logger

#logger

Instance Method Details

#filepath(uuid, expiration) ⇒ Object



10
11
12
# File 'lib/fourchette/tarball.rb', line 10

def filepath(uuid, expiration)
  "tmp/#{uuid}/#{expiration}.tar.gz"
end

#url(github_git_url, branch_name, github_repo) ⇒ Object



5
6
7
8
# File 'lib/fourchette/tarball.rb', line 5

def url(github_git_url, branch_name, github_repo)
  filepath = prepare_tarball(github_git_url, branch_name)
  tarball_to_url(filepath, github_repo)
end