Module: Mimas::Deployment::Paths
- Included in:
- Mimas::Deployment
- Defined in:
- lib/mimas/deployment/paths.rb
Instance Method Summary collapse
- #archive_name ⇒ Object
- #archive_path ⇒ Object
- #caddyfile_path ⇒ Object
- #current_path ⇒ Object
- #deploy_script_path ⇒ Object
- #mimas_path ⇒ Object
- #new_caddyfile_path ⇒ Object
- #releases_path ⇒ Object
- #remote_destination ⇒ Object
- #ruby_version ⇒ Object
- #site_root ⇒ Object
- #unix_socket(version: self.version) ⇒ Object
Instance Method Details
#archive_name ⇒ Object
8 9 10 |
# File 'lib/mimas/deployment/paths.rb', line 8 def archive_name @archive_name ||= "#{site.name}--#{version}.tar.gz" end |
#archive_path ⇒ Object
12 13 14 |
# File 'lib/mimas/deployment/paths.rb', line 12 def archive_path @archive_path end |
#caddyfile_path ⇒ Object
24 25 26 |
# File 'lib/mimas/deployment/paths.rb', line 24 def caddyfile_path site_root.join("Caddyfile") end |
#current_path ⇒ Object
20 21 22 |
# File 'lib/mimas/deployment/paths.rb', line 20 def current_path server.current_path(site) end |
#deploy_script_path ⇒ Object
49 50 51 |
# File 'lib/mimas/deployment/paths.rb', line 49 def deploy_script_path remote_destination.join(deploy_script) end |
#mimas_path ⇒ Object
32 33 34 |
# File 'lib/mimas/deployment/paths.rb', line 32 def mimas_path site_root.join("mimas") end |
#new_caddyfile_path ⇒ Object
28 29 30 |
# File 'lib/mimas/deployment/paths.rb', line 28 def new_caddyfile_path site_root.join("Caddyfile.new") end |
#releases_path ⇒ Object
36 37 38 |
# File 'lib/mimas/deployment/paths.rb', line 36 def releases_path site_root.join("releases") end |
#remote_destination ⇒ Object
4 5 6 |
# File 'lib/mimas/deployment/paths.rb', line 4 def remote_destination @remote_destination ||= releases_path.join(version) end |
#ruby_version ⇒ Object
45 46 47 |
# File 'lib/mimas/deployment/paths.rb', line 45 def ruby_version Config.current.ruby_version end |
#site_root ⇒ Object
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 |