Class: GitHubDownloadStrategy

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

Instance Attribute Summary

Attributes inherited from AbstractDownloadStrategy

#resource, #target_folder, #uri

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, #name, #stage

Constructor Details

#initialize(uri, desired_package_name = nil) ⇒ GitHubDownloadStrategy

Returns a new instance of GitHubDownloadStrategy.



163
164
165
166
167
# File 'lib/lace/download_strategy.rb', line 163

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