miga-base 1.2.15.3 → 1.2.15.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/daemon.rb +4 -1
- data/lib/miga/lair.rb +6 -4
- 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: 8ee87db325ab9759e42953f999099553c0921eca9fc6739db3b132f624b93177
|
4
|
+
data.tar.gz: e423b05412fba8256e0b3d9a6b8411c70b1f45d6addfe01129e842319d24baf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e473e720985fc09ac49e26f13c2734150fbbaf72422185de7982502e042ae1629e824ae0a2c50fe5cd2f0bfc642ceb6f79dc55cfb13d44be1ca828a639bb16d
|
7
|
+
data.tar.gz: 7692908ef9e69de7526955956a9c6c4d74d3939d69509ac1bfb1a4981248fab6fc2b54091ea56a380f80c913ceddb6179b09f4f1fef37a10cfe1b50bd7e8e74b
|
data/lib/miga/daemon.rb
CHANGED
@@ -128,7 +128,10 @@ class MiGA::Daemon < MiGA::MiGA
|
|
128
128
|
say(*msg) if verbosity >= level
|
129
129
|
end
|
130
130
|
|
131
|
-
|
131
|
+
##
|
132
|
+
# Rename the orginal MiGA::MiGA.say as +miga_say+, allowing
|
133
|
+
# external reporting since MiGA::Daemon overwrites +say+
|
134
|
+
alias_method :miga_say, :say
|
132
135
|
|
133
136
|
##
|
134
137
|
# Same as +l_say+ with +level = 1+
|
data/lib/miga/lair.rb
CHANGED
@@ -143,14 +143,16 @@ class MiGA::Lair < MiGA::MiGA
|
|
143
143
|
end
|
144
144
|
|
145
145
|
##
|
146
|
-
# Launch daemon for the MiGA::Project +project+
|
146
|
+
# Launch daemon for the MiGA::Project +project+ and returns the corresponding
|
147
|
+
# MiGA::Daemon object
|
147
148
|
def launch_daemon(project)
|
148
149
|
say "Launching daemon: #{project.path}"
|
149
|
-
|
150
|
-
|
150
|
+
daemon = MiGA::Daemon.new(project, options[:json])
|
151
|
+
daemon.runopts(:shutdown_when_done, true) unless options[:keep_inactive]
|
151
152
|
unless options[:dry]
|
152
|
-
|
153
|
+
daemon.start
|
153
154
|
sleep(1) # <- to make sure the daemon started up (it takes about 0.1 secs)
|
154
155
|
end
|
156
|
+
daemon
|
155
157
|
end
|
156
158
|
end
|
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, 15,
|
15
|
+
VERSION = [1.2, 15, 4].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|