Class: Downlow::Github

Inherits:
Http show all
Defined in:
lib/downlow/fetchers/github.rb

Instance Attribute Summary

Attributes inherited from Fetcher

#destination, #local_path, #options, #tmp_dir, #url

Instance Method Summary collapse

Methods inherited from Fetcher

fetch, #fetched?, fetcher_for, handles, #initialize

Constructor Details

This class inherits a constructor from Downlow::Fetcher

Instance Method Details

#fetchObject



6
7
8
9
10
11
12
13
14
# File 'lib/downlow/fetchers/github.rb', line 6

def fetch
  # change 
  # gh://quirkey/sammy
  # to:
  # http://github.com/quirkey/sammy/tarball/master
  project = url.to_s.gsub(/^(gh\:\/\/)/, '')
  @url = "http://github.com/#{project}/tarball/master"
  super
end