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_archives_pathObject



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_pathObject



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_pathObject



53
54
55
# File 'lib/luban/deployment/worker/paths.rb', line 53

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

#app_tmp_pathObject



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_pathObject



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_pathObject 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_pathObject



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_pathObject



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_pathObject



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_pathObject



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

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

#env_pathObject



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

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

#envrc_fileObject



73
74
75
# File 'lib/luban/deployment/worker/paths.rb', line 73

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

#packages_root_pathObject



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_pathObject



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_pathObject



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_pathObject



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

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

#tmp_pathObject



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_fileObject



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