Class: AbbrevGitDownloadStrategy
- Inherits:
-
GitDownloadStrategy
- Object
- AbstractDownloadStrategy
- GitDownloadStrategy
- AbbrevGitDownloadStrategy
- Defined in:
- lib/lace/download_strategy.rb
Instance Attribute Summary
Attributes inherited from AbstractDownloadStrategy
#name, #resource, #target_folder
Instance Method Summary collapse
-
#initialize(uri) ⇒ AbbrevGitDownloadStrategy
constructor
A new instance of AbbrevGitDownloadStrategy.
Methods inherited from GitDownloadStrategy
Methods included from GitCommands
#clone_args, #clone_repo, #git_dir, #repo_valid?, #reset, #submodules?, #update_repo, #update_submodules
Methods inherited from AbstractDownloadStrategy
Constructor Details
#initialize(uri) ⇒ AbbrevGitDownloadStrategy
Returns a new instance of AbbrevGitDownloadStrategy.
160 161 162 163 164 165 166 |
# File 'lib/lace/download_strategy.rb', line 160 def initialize uri unless uri.end_with?(".git") uri = "#{uri}.git" end uri = "https://github.com/#{uri}" super uri end |