Module: MGit::Workspace::PathHelper

Included in:
MGit::Workspace
Defined in:
lib/m-git/workspace/path_helper.rb

Overview

.mgit 目录下的文件路径

Instance Method Summary collapse

Instance Method Details

#cache_manifest_pathObject



49
50
51
52
# 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_fileObject

.mgit/config.yml



11
12
13
# File 'lib/m-git/workspace/path_helper.rb', line 11

def config_file
  File.join(root, Constants::MGIT_CONFIG_PATH)
end

#hooks_dirObject

.mgit/hooks



17
18
19
# File 'lib/m-git/workspace/path_helper.rb', line 17

def hooks_dir
  File.join(root, Constants::PROJECT_DIR[:hooks])
end

#local_manifest_pathObject



44
45
46
47
# 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_pathObject

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



39
40
41
42
# 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_dirObject

.mgit/snapshot



23
24
25
# File 'lib/m-git/workspace/path_helper.rb', line 23

def snapshot_dir
  File.join(root, Constants::PROJECT_DIR[:snapshot])
end

#source_config_dirObject

.mgit/source-config



29
30
31
# 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_dirObject

.mgit/source-git



34
35
36
# File 'lib/m-git/workspace/path_helper.rb', line 34

def source_git_dir
  File.join(root, Constants::PROJECT_DIR[:source_git])
end