Module: Capistrano::Immosquare::Helpers

Defined in:
lib/immosquare/capistrano/helpers.rb

Class Method Summary collapse

Class Method Details

.result_path(service) ⇒ Object



12
13
14
# File 'lib/immosquare/capistrano/helpers.rb', line 12

def self.result_path(service)
  "#{fetch(:tmp_dir)}/#{service_name(service)}"
end

.service_name(service) ⇒ Object



8
9
10
# File 'lib/immosquare/capistrano/helpers.rb', line 8

def self.service_name(service)
  "#{fetch(:"#{service}_service_unit_name")}.service"
end

.template_path(service) ⇒ Object



4
5
6
# File 'lib/immosquare/capistrano/helpers.rb', line 4

def self.template_path(service)
  "#{File.dirname(__FILE__)}/templates/#{service}.service.erb"
end