regenwolke_autons 0.0.6 → 0.0.7
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.
- checksums.yaml +4 -4
- data/lib/regenwolke_autons/nginx_auton.rb +3 -2
- data/lib/regenwolke_autons/version.rb +1 -1
- data/lib/regenwolke_autons.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e599b67145bb1e674ac66574842f0d61bf183d41
|
4
|
+
data.tar.gz: 06cd46a645abc70054128b141beeae8dd1215dee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 533d80723132f04bed1740cccb499715debaaee04aff2aa1896d8cdda2d911b218991dd690f0411c8f0c8d8ef2cd86c0ed0a4132494ffd4fd939bf2c40d472a0
|
7
|
+
data.tar.gz: 646f42ad533d33735da9f65e21a809513af6d81feb2de3871106660ba7aafa8eb1dff3465e80a02928454d7b6b4df04efbf3549b9ce2a980cbd0e88e241cfcb1
|
@@ -14,7 +14,8 @@ module RegenwolkeAutons
|
|
14
14
|
attr_accessor :context
|
15
15
|
|
16
16
|
def start
|
17
|
-
context.schedule_step(:
|
17
|
+
context.schedule_step(:start_nginx_if_not_running)
|
18
|
+
context.schedule_repeating_delayed_step 10, 10, :start_nginx_if_not_running
|
18
19
|
end
|
19
20
|
|
20
21
|
def start_nginx
|
@@ -26,7 +27,7 @@ module RegenwolkeAutons
|
|
26
27
|
self.pid = cp.pid
|
27
28
|
end
|
28
29
|
|
29
|
-
def
|
30
|
+
def start_nginx_if_not_running
|
30
31
|
context.schedule_step(:start_nginx) unless nginx_process_exist?
|
31
32
|
end
|
32
33
|
|
data/lib/regenwolke_autons.rb
CHANGED
@@ -2,3 +2,17 @@ require 'nestene'
|
|
2
2
|
require 'regenwolke_autons/regenwolke_auton'
|
3
3
|
require 'regenwolke_autons/nginx_auton'
|
4
4
|
require "regenwolke_autons/version"
|
5
|
+
|
6
|
+
|
7
|
+
module RegenwolkeAutons
|
8
|
+
|
9
|
+
class Core
|
10
|
+
def self.init
|
11
|
+
unless Celluloid::Actor[:nestene_core].auton_names.include?('nginx')
|
12
|
+
Celluloid::Actor[:nestene_core].create_auton('RegenwolkeAutons::NginxAuton','nginx')
|
13
|
+
Celluloid::Actor[:nestene_core].schedule_step('nginx', 'start')
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|