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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33925095e4e131d5ba3f9f80d6462593b779f673636bc108c1dde21986a4ccf6
4
- data.tar.gz: 2623dea72c35edfc2f9971fd5a448e40f9c92784cf6e9dc899e9b1b93501e78e
3
+ metadata.gz: 4ad3a195707e0391dfc4166b1296d0baf7d42267e4c61013bed5ed1ae3e38fa5
4
+ data.tar.gz: b73a2b06c2f21a7cf96f2c0110c6a0ecbddf26ea8ce26974d511f09c0df5b4aa
5
5
  SHA512:
6
- metadata.gz: 64f7a60f94338d982d393cc42c9c15bf22b6c573f195f02f7e8e5b33cfad5cbb0f4b7f3140bab34b4d92c4602742907977aeb9984874f7290fdb91f8556c8247
7
- data.tar.gz: 62ece56dc25fada8748e3cc4bf6b8059ee13af363a81b0a09cb185d8de42d2288b1a88e57e4336c6fb3e811b70995de9686c0b1da2d8f3f0822059fcbebe6648
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(MiGA::Daemon.new(project, options[:json])) }
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 = MiGA::Daemon.new(project)
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 = MiGA::Daemon.new(project, options[:json])
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, 1].freeze
15
+ VERSION = [1.2, 18, 2].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.18.1
4
+ version: 1.2.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R