class Djin::IncludeConfig
Public Instance Methods
folder_name()
click to toggle source
TODO: Rethink
# File lib/djin/entities/include_config.rb, line 37 def folder_name @folder_name ||= "#{git.split('/').last.chomp('.git')}@#{version}" end
full_path()
click to toggle source
# File lib/djin/entities/include_config.rb, line 28 def full_path base_directory_pathname.join(file).expand_path end
missing?()
click to toggle source
# File lib/djin/entities/include_config.rb, line 24 def missing? missing end
present?()
click to toggle source
# File lib/djin/entities/include_config.rb, line 20 def present? !missing? end
repository_fetched?()
click to toggle source
# File lib/djin/entities/include_config.rb, line 32 def repository_fetched? @repository_fetched ||= base_directory_pathname.join(folder_name).exist? end
type()
click to toggle source
# File lib/djin/entities/include_config.rb, line 16 def type @type ||= git.present? ? :remote : :local end
Private Instance Methods
base_directory_pathname()
click to toggle source
# File lib/djin/entities/include_config.rb, line 43 def base_directory_pathname @base_directory_pathname ||= Pathname.new(base_directory) end