module MGit::Workspace::PathHelper

.mgit 目录下的文件路径

Public Instance Methods

cache_manifest_path() click to toggle source
# File lib/m-git/workspace/path_helper.rb, line 49
def cache_manifest_path
  file_name = Constants::CONFIG_FILE_NAME[:manifest_cache]
  File.join(source_config_dir, file_name)
end
config_file() click to toggle source

.mgit/config.yml

# File lib/m-git/workspace/path_helper.rb, line 11
def config_file
  File.join(root, Constants::MGIT_CONFIG_PATH)
end
hooks_dir() click to toggle source

.mgit/hooks

# File lib/m-git/workspace/path_helper.rb, line 17
def hooks_dir
  File.join(root, Constants::PROJECT_DIR[:hooks])
end
local_manifest_path() click to toggle source
# File lib/m-git/workspace/path_helper.rb, line 44
def local_manifest_path
  manifest_name = Constants::CONFIG_FILE_NAME[:local_manifest]
  File.join(source_config_dir, manifest_name)
end
manifest_path() click to toggle source

manifest ##########################

# File lib/m-git/workspace/path_helper.rb, line 39
def manifest_path
  manifest_name = Constants::CONFIG_FILE_NAME[:manifest]
  File.join(source_config_dir, manifest_name)
end
snapshot_dir() click to toggle source

.mgit/snapshot

# File lib/m-git/workspace/path_helper.rb, line 23
def snapshot_dir
  File.join(root, Constants::PROJECT_DIR[:snapshot])
end
source_config_dir() click to toggle source

.mgit/source-config

# File lib/m-git/workspace/path_helper.rb, line 29
def source_config_dir
  File.join(root, Constants::PROJECT_DIR[:source_config])
end
source_git_dir() click to toggle source

.mgit/source-git

# File lib/m-git/workspace/path_helper.rb, line 34
def source_git_dir
  File.join(root, Constants::PROJECT_DIR[:source_git])
end