capricorn 0.2.02 → 0.2.03

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,11 +9,20 @@ module Capricorn
9
9
  # restart the current satellite.
10
10
  def restart
11
11
  system.as_user(system.web_user, system.web_group) do
12
- tmp_restart = File.join(system.satellite_root, 'tmp', 'restart.txt')
12
+ tmp_restart = system.passenger_restart_txt
13
13
  FileUtils.touch tmp_restart, :verbose => true
14
14
  end
15
15
  end
16
16
 
17
+ module Config
18
+
19
+ # set the passneger restart file.
20
+ def passenger_restart_txt(&block)
21
+ satellite_option(:passenger_restart_txt, block) { |v,s| v || File.join(satellite_root, 'tmp', 'restart.txt') }
22
+ end
23
+
24
+ end
25
+
17
26
  end
18
27
  end
19
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capricorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.02
4
+ version: 0.2.03
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Menke