Class: GitSnatch
- Inherits:
-
Object
- Object
- GitSnatch
- Extended by:
- Configure
- Defined in:
- lib/git_snatch.rb,
lib/git_snatch/url.rb,
lib/git_snatch/grab.rb,
lib/git_snatch/curler.rb,
lib/git_snatch/request.rb,
lib/git_snatch/version.rb,
lib/git_snatch/configuration.rb
Defined Under Namespace
Modules: Configure Classes: Configuration, Curler, Grab, Request, Url
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Instance Method Summary collapse
- #grab(location) ⇒ Object
-
#initialize(repo, sha) ⇒ GitSnatch
constructor
A new instance of GitSnatch.
Methods included from Configure
Constructor Details
#initialize(repo, sha) ⇒ GitSnatch
Returns a new instance of GitSnatch.
11 12 13 14 |
# File 'lib/git_snatch.rb', line 11 def initialize(repo, sha) @repo = repo @sha = sha end |
Class Method Details
.within(repo, sha) ⇒ Object
16 17 18 |
# File 'lib/git_snatch.rb', line 16 def self.within(repo, sha) new(repo, sha) end |
Instance Method Details
#grab(location) ⇒ Object
20 21 22 |
# File 'lib/git_snatch.rb', line 20 def grab(location) Grab.new(@repo, @sha, location).content end |