class Djin::IncludeContract
Constants
- ContextSchema
- GIT_FILE_REGEXP
- GIT_SSH_REGEXP
- GIT_URI_REGEXP
Private Instance Methods
valid_git_repository_path?(path)
click to toggle source
TODO: Add more validations to file and to restricted unespected keys
# File lib/djin/include_contract.rb, line 33 def valid_git_repository_path?(path) [GIT_URI_REGEXP, GIT_SSH_REGEXP, GIT_FILE_REGEXP].any? { |regexp| regexp.match?(path) } end