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
- #downloads_path ⇒ Object
- #env_path ⇒ Object
- #envrc_file ⇒ Object
- #luban_install_path ⇒ Object
- #package_bin_path(package_name) ⇒ Object
- #project_path ⇒ Object
- #releases_path ⇒ Object
- #shared_path ⇒ Object
- #tmp_path ⇒ Object
- #unset_envrc_file ⇒ Object
Instance Method Details
#app_archives_path ⇒ Object
83 84 85 86 |
# File 'lib/luban/deployment/worker/paths.rb', line 83 def app_archives_path @app_archives_path ||= archives_path.join("#{stage}.#{project}", application, hostname) end |
#app_bin_path ⇒ Object
49 50 51 |
# File 'lib/luban/deployment/worker/paths.rb', line 49 def app_bin_path @app_bin_path ||= app_path.join('bin') end |
#app_path ⇒ Object
41 42 43 |
# File 'lib/luban/deployment/worker/paths.rb', line 41 def app_path @app_path ||= project_path.join(application) end |
#app_tmp_path ⇒ Object
53 54 55 |
# File 'lib/luban/deployment/worker/paths.rb', line 53 def app_tmp_path @app_tmp_path ||= app_path.join('tmp') end |
#archived_logs_path ⇒ Object
88 89 90 |
# File 'lib/luban/deployment/worker/paths.rb', line 88 def archived_logs_path @archived_logs_path ||= app_archives_path.join('archived_logs') end |
#archives_path ⇒ Object Also known as: local_archives_path
24 25 26 |
# File 'lib/luban/deployment/worker/paths.rb', line 24 def archives_path @archives_path ||= luban_root_path.join('archives') end |
#current_app_path ⇒ Object
45 46 47 |
# File 'lib/luban/deployment/worker/paths.rb', line 45 def current_app_path @app_symlink ||= app_path.join('app') end |
#downloads_path ⇒ Object
33 34 35 |
# File 'lib/luban/deployment/worker/paths.rb', line 33 def downloads_path @downloads_path ||= luban_root_path.join('downloads') end |
#env_path ⇒ Object
20 21 22 |
# File 'lib/luban/deployment/worker/paths.rb', line 20 def env_path @env_path ||= luban_root_path.join('env') end |
#envrc_file ⇒ Object
65 66 67 |
# File 'lib/luban/deployment/worker/paths.rb', line 65 def envrc_file @envrc_file ||= app_path.join(".envrc") end |
#luban_install_path ⇒ Object
73 74 75 |
# File 'lib/luban/deployment/worker/paths.rb', line 73 def luban_install_path @luban_install_path ||= project_path.join('.luban') end |
#package_bin_path(package_name) ⇒ Object
77 78 79 80 81 |
# File 'lib/luban/deployment/worker/paths.rb', line 77 def package_bin_path(package_name) @package_bin_path ||= luban_install_path.join('pkg', package_name.to_s, 'versions', packages[package_name.to_sym].current_version, 'bin') end |
#project_path ⇒ Object
37 38 39 |
# File 'lib/luban/deployment/worker/paths.rb', line 37 def project_path @project_path ||= env_path.join("#{stage}.#{project}") end |
#releases_path ⇒ Object
57 58 59 |
# File 'lib/luban/deployment/worker/paths.rb', line 57 def releases_path @releases_path ||= app_path.join('releases') end |
#shared_path ⇒ Object
61 62 63 |
# File 'lib/luban/deployment/worker/paths.rb', line 61 def shared_path @shared_path ||= app_path.join('shared') end |
#tmp_path ⇒ Object
29 30 31 |
# File 'lib/luban/deployment/worker/paths.rb', line 29 def tmp_path @tmp_path ||= luban_root_path.join('tmp') end |
#unset_envrc_file ⇒ Object
69 70 71 |
# File 'lib/luban/deployment/worker/paths.rb', line 69 def unset_envrc_file @unset_envrc_file ||= app_path.join(".unset_envrc") end |