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_bin_path ⇒ Object
- #app_path ⇒ Object
- #app_tmp_path ⇒ Object
- #current_app_path ⇒ Object
- #downloads_path ⇒ Object
- #env_path ⇒ Object
- #envrc_file ⇒ Object
- #etc_path ⇒ Object
- #logrotate_path ⇒ Object
- #luban_install_path ⇒ Object
- #project_path ⇒ Object
- #releases_path ⇒ Object
- #shared_path ⇒ Object
- #tmp_path ⇒ Object
- #unset_envrc_file ⇒ Object
Instance Method Details
#app_bin_path ⇒ Object
52 53 54 |
# File 'lib/luban/deployment/worker/paths.rb', line 52 def app_bin_path @app_bin_path ||= app_path.join('bin') end |
#app_path ⇒ Object
44 45 46 |
# File 'lib/luban/deployment/worker/paths.rb', line 44 def app_path @app_path ||= project_path.join(application) end |
#app_tmp_path ⇒ Object
56 57 58 |
# File 'lib/luban/deployment/worker/paths.rb', line 56 def app_tmp_path @app_tmp_path ||= app_path.join('tmp') end |
#current_app_path ⇒ Object
48 49 50 |
# File 'lib/luban/deployment/worker/paths.rb', line 48 def current_app_path @app_symlink ||= app_path.join('app') end |
#downloads_path ⇒ Object
36 37 38 |
# File 'lib/luban/deployment/worker/paths.rb', line 36 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
68 69 70 |
# File 'lib/luban/deployment/worker/paths.rb', line 68 def envrc_file @envrc_file ||= app_path.join(".envrc") end |
#etc_path ⇒ Object
24 25 26 |
# File 'lib/luban/deployment/worker/paths.rb', line 24 def etc_path @etc_path ||= luban_root_path.join('etc') end |
#logrotate_path ⇒ Object
28 29 30 |
# File 'lib/luban/deployment/worker/paths.rb', line 28 def logrotate_path @logrotate_path = etc_path.join('logrotate') end |
#luban_install_path ⇒ Object
76 77 78 |
# File 'lib/luban/deployment/worker/paths.rb', line 76 def luban_install_path @luban_install_path ||= project_path.join('.luban') end |
#project_path ⇒ Object
40 41 42 |
# File 'lib/luban/deployment/worker/paths.rb', line 40 def project_path @project_path ||= env_path.join("#{stage}.#{project}") end |
#releases_path ⇒ Object
60 61 62 |
# File 'lib/luban/deployment/worker/paths.rb', line 60 def releases_path @releases_path ||= app_path.join('releases') end |
#shared_path ⇒ Object
64 65 66 |
# File 'lib/luban/deployment/worker/paths.rb', line 64 def shared_path @shared_path ||= app_path.join('shared') end |
#tmp_path ⇒ Object
32 33 34 |
# File 'lib/luban/deployment/worker/paths.rb', line 32 def tmp_path @tmp_path ||= luban_root_path.join('tmp') end |
#unset_envrc_file ⇒ Object
72 73 74 |
# File 'lib/luban/deployment/worker/paths.rb', line 72 def unset_envrc_file @unset_envrc_file ||= app_path.join(".unset_envrc") end |