Class: Polisher::Git::Project

Inherits:
Repo
  • Object
show all
Includes:
HasVendoredDeps
Defined in:
lib/polisher/git/project.rb

Overview

Git based project representation

Instance Attribute Summary

Attributes inherited from Repo

#path, #url

Instance Method Summary collapse

Methods included from HasVendoredDeps

#vendored_file_paths

Methods inherited from Repo

#checkout, #clobber!, #clone, #cloned?, #commit, #file_paths, #in_repo, #include?, #initialize, #pull, #reset!

Methods included from ConfHelpers

included, #require_cmd!, #require_dep!

Constructor Details

This class inherits a constructor from Polisher::Git::Repo

Instance Method Details

#vendoredObject

Override vendored to ensure repo is cloned before retrieving modules



17
18
19
20
# File 'lib/polisher/git/project.rb', line 17

def vendored
  clone unless cloned?
  super
end