Module: MGit::Workspace::PathHelper
- Included in:
- MGit::Workspace
- Defined in:
- lib/m-git/workspace/path_helper.rb
Overview
.mgit 目录下的文件路径
Instance Method Summary collapse
- #cache_manifest_path ⇒ Object
-
#config_file ⇒ Object
.mgit/config.yml.
-
#hooks_dir ⇒ Object
.mgit/hooks.
- #local_manifest_path ⇒ Object
-
#manifest_path ⇒ Object
manifest ##########################.
-
#snapshot_dir ⇒ Object
.mgit/snapshot.
-
#source_config_dir ⇒ Object
.mgit/source-config.
-
#source_git_dir ⇒ Object
.mgit/source-git.
Instance Method Details
#cache_manifest_path ⇒ Object
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_file ⇒ Object
.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_dir ⇒ Object
.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_path ⇒ Object
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_path ⇒ Object
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_dir ⇒ Object
.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_dir ⇒ Object
.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_dir ⇒ Object
.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 |