Module: Luban::Deployment::Worker::Paths::Remote
- Included in:
- Application::Worker, Package::Worker
- Defined in:
- lib/luban/deployment/worker/paths.rb
Instance Method Summary collapse
- #app_archives_path ⇒ Object
- #app_bin_path ⇒ Object
- #app_path ⇒ Object
- #app_tmp_path ⇒ Object
- #archived_logs_path ⇒ Object
- #archives_path ⇒ Object (also: #local_archives_path)
- #current_app_path ⇒ Object
- #deployment_projects_path ⇒ Object
- #docker_root_path ⇒ Object
- #downloads_path ⇒ Object
- #env_path ⇒ Object
- #envrc_file ⇒ Object
- #packages_root_path ⇒ Object
- #project_path ⇒ Object
- #releases_root_path ⇒ Object
- #shared_path ⇒ Object
- #tmp_path ⇒ Object
- #unset_envrc_file ⇒ Object
Instance Method Details
#app_archives_path ⇒ Object
85 86 87 88 |
# File 'lib/luban/deployment/worker/paths.rb', line 85 def app_archives_path @app_archives_path ||= archives_path.join("#{stage}.#{project}", application, hostname) end |
#app_bin_path ⇒ Object
61 62 63 |
# File 'lib/luban/deployment/worker/paths.rb', line 61 def app_bin_path @app_bin_path ||= app_path.join('bin') end |
#app_path ⇒ Object
53 54 55 |
# File 'lib/luban/deployment/worker/paths.rb', line 53 def app_path @app_path ||= project_path.join(application) end |
#app_tmp_path ⇒ Object
65 66 67 |
# File 'lib/luban/deployment/worker/paths.rb', line 65 def app_tmp_path @app_tmp_path ||= app_path.join('tmp') end |
#archived_logs_path ⇒ Object
90 91 92 |
# File 'lib/luban/deployment/worker/paths.rb', line 90 def archived_logs_path @archived_logs_path ||= app_archives_path.join('archived_logs') end |
#archives_path ⇒ Object Also known as: local_archives_path
32 33 34 |
# File 'lib/luban/deployment/worker/paths.rb', line 32 def archives_path @archives_path ||= luban_root_path.join('archives') end |
#current_app_path ⇒ Object
57 58 59 |
# File 'lib/luban/deployment/worker/paths.rb', line 57 def current_app_path @current_app_path ||= app_path.join('app') end |
#deployment_projects_path ⇒ Object
20 21 22 |
# File 'lib/luban/deployment/worker/paths.rb', line 20 def deployment_projects_path @deployment_projects_path ||= luban_root_path.join('projects') end |
#docker_root_path ⇒ Object
45 46 47 |
# File 'lib/luban/deployment/worker/paths.rb', line 45 def docker_root_path @docker_root_path ||= luban_root_path.join('docker') end |
#downloads_path ⇒ Object
41 42 43 |
# File 'lib/luban/deployment/worker/paths.rb', line 41 def downloads_path @downloads_path ||= luban_root_path.join('downloads') end |
#env_path ⇒ Object
28 29 30 |
# File 'lib/luban/deployment/worker/paths.rb', line 28 def env_path @env_path ||= luban_root_path.join('env') end |
#envrc_file ⇒ Object
73 74 75 |
# File 'lib/luban/deployment/worker/paths.rb', line 73 def envrc_file @envrc_file ||= app_path.join(".envrc") end |
#packages_root_path ⇒ Object
81 82 83 |
# File 'lib/luban/deployment/worker/paths.rb', line 81 def packages_root_path @packages_root_path ||= luban_root_path.join('packages') end |
#project_path ⇒ Object
49 50 51 |
# File 'lib/luban/deployment/worker/paths.rb', line 49 def project_path @project_path ||= env_path.join("#{stage}.#{project}") end |
#releases_root_path ⇒ Object
24 25 26 |
# File 'lib/luban/deployment/worker/paths.rb', line 24 def releases_root_path @releases_root_path ||= luban_root_path.join('releases') end |
#shared_path ⇒ Object
69 70 71 |
# File 'lib/luban/deployment/worker/paths.rb', line 69 def shared_path @shared_path ||= app_path.join('shared') end |
#tmp_path ⇒ Object
37 38 39 |
# File 'lib/luban/deployment/worker/paths.rb', line 37 def tmp_path @tmp_path ||= luban_root_path.join('tmp') end |
#unset_envrc_file ⇒ Object
77 78 79 |
# File 'lib/luban/deployment/worker/paths.rb', line 77 def unset_envrc_file @unset_envrc_file ||= app_path.join(".unset_envrc") end |