karma_messages 0.1.5 → 0.1.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c71b90cfd14ea5eaf17451411f31faa42768a65
|
4
|
+
data.tar.gz: 3f0b5b0765ecdafd58e2a00a26c84703d7091812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 720d9b0e9728cb1b981b8999a5f5d0dc1f99a1abad67e3c1fad03c1ebe04c69bb738208af1763bc108c9f40d4aca358983d221aeea5940f9003d544730e04077
|
7
|
+
data.tar.gz: 88a435fd6a14f4adcce3048d4c0a2a8e0f6c98ec2b0a6bba67d531cb5aa9c3b32718accf5f234b14e5662dae8be35209411c7adcbe65543f09a5ab2bcd217402
|
@@ -2,7 +2,7 @@ module Karma::Messages
|
|
2
2
|
|
3
3
|
class ProcessConfigUpdateMessage < BaseKarmap
|
4
4
|
|
5
|
-
attr_reader :memory_max, :cpu_quota, :min_running, :max_running, :auto_restart, :auto_start, :push_notifications, :log_level, :num_threads
|
5
|
+
attr_reader :memory_max, :cpu_quota, :min_running, :max_running, :auto_restart, :auto_start, :push_notifications, :log_level, :num_threads, :notify_interval
|
6
6
|
|
7
7
|
def parse(params)
|
8
8
|
super(params)
|
@@ -23,6 +23,7 @@ module Karma::Messages
|
|
23
23
|
@push_notifications = params[:push_notifications]
|
24
24
|
@log_level = params[:log_level]
|
25
25
|
@num_threads = params[:num_threads]
|
26
|
+
@notify_interval = params[:notify_interval]
|
26
27
|
end
|
27
28
|
|
28
29
|
def to_message
|
@@ -32,6 +33,7 @@ module Karma::Messages
|
|
32
33
|
ret.merge!({ memory_max: @memory_max} ) if @memory_max.present?
|
33
34
|
ret.merge!({ cpu_quota: @cpu_quota} ) if @cpu_quota.present?
|
34
35
|
ret.merge!({ push_notifications: @push_notifications} ) if @push_notifications.present?
|
36
|
+
ret.merge!({ notify_interval: @notify_interval} ) if @notify_interval.present?
|
35
37
|
ret
|
36
38
|
end
|
37
39
|
|
@@ -45,7 +47,8 @@ module Karma::Messages
|
|
45
47
|
auto_start: auto_start,
|
46
48
|
push_notifications: push_notifications,
|
47
49
|
num_threads: num_threads,
|
48
|
-
log_level: log_level
|
50
|
+
log_level: log_level,
|
51
|
+
notify_interval: notify_interval
|
49
52
|
}
|
50
53
|
end
|
51
54
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karma_messages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- extendi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|