Module: Luban::Deployment::Worker::Paths::Remote

Included in:
Application::Worker, Package::Worker
Defined in:
lib/luban/deployment/worker/paths.rb

Instance Method Summary collapse

Instance Method Details

#app_bin_pathObject



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_pathObject



44
45
46
# File 'lib/luban/deployment/worker/paths.rb', line 44

def app_path
  @app_path ||= project_path.join(application)
end

#app_tmp_pathObject



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_pathObject



48
49
50
# File 'lib/luban/deployment/worker/paths.rb', line 48

def current_app_path
  @app_symlink ||= app_path.join('app')
end

#downloads_pathObject



36
37
38
# File 'lib/luban/deployment/worker/paths.rb', line 36

def downloads_path
  @downloads_path ||= luban_root_path.join('downloads')
end

#env_pathObject



20
21
22
# File 'lib/luban/deployment/worker/paths.rb', line 20

def env_path
  @env_path ||= luban_root_path.join('env')
end

#envrc_fileObject



68
69
70
# File 'lib/luban/deployment/worker/paths.rb', line 68

def envrc_file
  @envrc_file ||= app_path.join(".envrc")
end

#etc_pathObject



24
25
26
# File 'lib/luban/deployment/worker/paths.rb', line 24

def etc_path
  @etc_path ||= luban_root_path.join('etc')
end

#logrotate_pathObject



28
29
30
# File 'lib/luban/deployment/worker/paths.rb', line 28

def logrotate_path
  @logrotate_path = etc_path.join('logrotate')
end

#luban_install_pathObject



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_pathObject



40
41
42
# File 'lib/luban/deployment/worker/paths.rb', line 40

def project_path
  @project_path ||= env_path.join("#{stage}.#{project}")
end

#releases_pathObject



60
61
62
# File 'lib/luban/deployment/worker/paths.rb', line 60

def releases_path
  @releases_path ||= app_path.join('releases')
end

#shared_pathObject



64
65
66
# File 'lib/luban/deployment/worker/paths.rb', line 64

def shared_path
  @shared_path ||= app_path.join('shared')
end

#tmp_pathObject



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_fileObject



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