miga-base 1.2.18.1 → 1.2.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/lair.rb +9 -3
- data/lib/miga/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ad3a195707e0391dfc4166b1296d0baf7d42267e4c61013bed5ed1ae3e38fa5
|
4
|
+
data.tar.gz: b73a2b06c2f21a7cf96f2c0110c6a0ecbddf26ea8ce26974d511f09c0df5b4aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27150ce62c811276af7ccd5d6990f074ea42a1adbae38f2134bb1cf4fbd0be9722a9ce3c335868b97e88e21a3dcd6c7c5eb65c9b958d298265ffe030e1438510
|
7
|
+
data.tar.gz: 871dabd94f165be6ae1e4d7310bae0565c85e5c1a0fa5ab38a2dd11c1a988580c7cdb0419f561882aa887ff7819e7c67f51928127d0c5c7cf80559baa460c881
|
data/lib/miga/lair.rb
CHANGED
@@ -57,6 +57,12 @@ class MiGA::Lair < MiGA::MiGA
|
|
57
57
|
"MiGA:#{options[:name]}"
|
58
58
|
end
|
59
59
|
|
60
|
+
##
|
61
|
+
# Return the daemon of +project+, a MiGA::Project object
|
62
|
+
def project_daemon(project)
|
63
|
+
MiGA::Daemon.new(project, options[:json])
|
64
|
+
end
|
65
|
+
|
60
66
|
##
|
61
67
|
# First loop of the lair's chief daemon
|
62
68
|
def daemon_first_loop
|
@@ -123,14 +129,14 @@ class MiGA::Lair < MiGA::MiGA
|
|
123
129
|
# if +include_self+.
|
124
130
|
def each_daemon(include_self = true)
|
125
131
|
yield(self) if include_self
|
126
|
-
each_project { |project| yield(
|
132
|
+
each_project { |project| yield(project_daemon(project)) }
|
127
133
|
end
|
128
134
|
|
129
135
|
##
|
130
136
|
# Traverse directories checking MiGA projects
|
131
137
|
def check_directories
|
132
138
|
each_project do |project|
|
133
|
-
d =
|
139
|
+
d = project_daemon(project)
|
134
140
|
next if d.active?
|
135
141
|
|
136
142
|
l_alive = d.last_alive
|
@@ -147,7 +153,7 @@ class MiGA::Lair < MiGA::MiGA
|
|
147
153
|
# MiGA::Daemon object
|
148
154
|
def launch_daemon(project)
|
149
155
|
say "Launching daemon: #{project.path}"
|
150
|
-
daemon =
|
156
|
+
daemon = project_daemon(project)
|
151
157
|
daemon.runopts(:shutdown_when_done, true) unless options[:keep_inactive]
|
152
158
|
unless options[:dry]
|
153
159
|
daemon.start
|
data/lib/miga/version.rb
CHANGED
@@ -12,7 +12,7 @@ module MiGA
|
|
12
12
|
# - String indicating release status:
|
13
13
|
# - rc* release candidate, not released as gem
|
14
14
|
# - [0-9]+ stable release, released as gem
|
15
|
-
VERSION = [1.2, 18,
|
15
|
+
VERSION = [1.2, 18, 2].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|