lib/capistrano/systemd/multiservice/system_service.rb in capistrano-systemd-ng-0.1.1 vs lib/capistrano/systemd/multiservice/system_service.rb in capistrano-systemd-ng-0.1.2
- old
+ new
@@ -40,10 +40,10 @@
set_if_empty :"#{prefix}_units_dir", ->{ default_units_dir }
set_if_empty :"#{prefix}_units_dest", ->{
fetch(:"#{prefix}_units_src").map{|src|
- "%s/%s_%s" % [ fetch(:"#{prefix}_units_dir"), fetch(:application), File.basename(src, ".erb") ]
+ "%s/%s_%s-%s" % [ fetch(:"#{prefix}_units_dir"), fetch(:application), fetch(:stage), File.basename(src, ".erb") ]
}
}
set_if_empty :"#{prefix}_instances", ->{
if fetch(:"#{prefix}_units_dest").map{|dst| File.basename(dst) }.find{|f| f =~ /@\.service\z/ }