class GitSnatch::Grab

Public Class Methods

new(repo, sha, location) click to toggle source
# File lib/git_snatch/grab.rb, line 3
def initialize(repo, sha, location)
  @repo = repo
  @sha = sha
  @location = location
end

Public Instance Methods

content() click to toggle source
# File lib/git_snatch/grab.rb, line 9
def content
  request.body
end
request() click to toggle source
# File lib/git_snatch/grab.rb, line 13
def request
  Request.new(url)
end

Private Instance Methods

url() click to toggle source
# File lib/git_snatch/grab.rb, line 19
def url
  Url.new(@repo, @sha, @location).full
end