class GitSnatch

Constants

VERSION

Public Class Methods

new(repo, sha) click to toggle source
# File lib/git_snatch.rb, line 11
def initialize(repo, sha)
  @repo = repo
  @sha = sha
end
within(repo, sha) click to toggle source
# File lib/git_snatch.rb, line 16
def self.within(repo, sha)
  new(repo, sha)
end

Public Instance Methods

grab(location) click to toggle source
# File lib/git_snatch.rb, line 20
def grab(location)
  Grab.new(@repo, @sha, location).content
end