Class: AbbrevGitDownloadStrategy

Inherits:
GitDownloadStrategy show all
Defined in:
lib/lace/download_strategy.rb

Instance Attribute Summary

Attributes inherited from AbstractDownloadStrategy

#name, #resource, #target_folder

Instance Method Summary collapse

Methods inherited from GitDownloadStrategy

#fetch, #name

Methods included from GitCommands

#clone_args, #clone_repo, #git_dir, #repo_modified?, #repo_valid?, #reset, #submodules?, #update_repo, #update_submodules

Methods inherited from AbstractDownloadStrategy

#fetch, #stage, #uri

Constructor Details

#initialize(uri, desired_package_name = nil) ⇒ AbbrevGitDownloadStrategy

Returns a new instance of AbbrevGitDownloadStrategy.



169
170
171
172
173
174
175
# File 'lib/lace/download_strategy.rb', line 169

def initialize uri, desired_package_name=nil
  unless uri.end_with?(".git")
    uri = "#{uri}.git"
  end
  uri = "https://github.com/#{uri}"
  super uri, desired_package_name
end