Module: Mimas::Deployment::Paths

Included in:
Mimas::Deployment
Defined in:
lib/mimas/deployment/paths.rb

Instance Method Summary collapse

Instance Method Details

#archive_nameObject



8
9
10
# File 'lib/mimas/deployment/paths.rb', line 8

def archive_name
  @archive_name ||= "#{site.name}--#{version}.tar.gz"
end

#archive_pathObject



12
13
14
# File 'lib/mimas/deployment/paths.rb', line 12

def archive_path
  @archive_path
end

#caddyfile_pathObject



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

def caddyfile_path
  site_root.join("Caddyfile")
end

#current_pathObject



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

def current_path
  server.current_path(site)
end

#deploy_script_pathObject



49
50
51
# File 'lib/mimas/deployment/paths.rb', line 49

def deploy_script_path
  remote_destination.join(deploy_script)
end

#mimas_pathObject



32
33
34
# File 'lib/mimas/deployment/paths.rb', line 32

def mimas_path
  site_root.join("mimas")
end

#new_caddyfile_pathObject



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

def new_caddyfile_path
  site_root.join("Caddyfile.new")
end

#releases_pathObject



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

def releases_path
  site_root.join("releases")
end

#remote_destinationObject



4
5
6
# File 'lib/mimas/deployment/paths.rb', line 4

def remote_destination
  @remote_destination ||= releases_path.join(version)
end

#ruby_versionObject



45
46
47
# File 'lib/mimas/deployment/paths.rb', line 45

def ruby_version
  Config.current.ruby_version
end

#site_rootObject



16
17
18
# File 'lib/mimas/deployment/paths.rb', line 16

def site_root
  server.site_root(site)
end

#unix_socket(version: self.version) ⇒ Object



40
41
42
43
# File 'lib/mimas/deployment/paths.rb', line 40

def unix_socket(version: self.version)
  return nil if site.static?
  mimas_path.join("application--#{version}.sock")
end