awslive-inputlooper 0.1.8 → 0.1.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a11c3375ccc5456235263b78f407cf2d1c533775dacb8f8bb60a5cfadc2075a4
|
4
|
+
data.tar.gz: e1f7cf9a62c6726352ae5900e0f1bb54176a688067855b932d9ac8d10d2d0ea7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae17691c433f2e5ef37632dd0c0f4cab629b5fd2bf7574579138c6a0dd9846a9eee1012c8f9debf383b54da5ed698641b31023f94e740e27f222e0e43bb0a631
|
7
|
+
data.tar.gz: a7c67fdaf217a8ba8be62c62a8b7419882ea9d53eb5c6b185bd4c4ea24a498f97c8b883412280b8ec916e710a7b23c799cfe50bce568dc753858378b6b94ef42
|
@@ -298,11 +298,11 @@ module Awslive
|
|
298
298
|
end
|
299
299
|
|
300
300
|
def pause_channel
|
301
|
-
@scheduler.create(@channel_id, FIXED, PAUSE, get_channel_class)
|
301
|
+
@scheduler.create(@channel_id, FIXED, PAUSE, { :channel_class => "#{get_channel_class}" })
|
302
302
|
end
|
303
303
|
|
304
304
|
def unpause_channel
|
305
|
-
@scheduler.create(@channel_id, FIXED, UNPAUSE, get_channel_class)
|
305
|
+
@scheduler.create(@channel_id, FIXED, UNPAUSE, { :channel_class => "#{get_channel_class}" })
|
306
306
|
end
|
307
307
|
|
308
308
|
end
|
@@ -17,9 +17,9 @@ module Awslive
|
|
17
17
|
|
18
18
|
def get_pause_schedule_action(type)
|
19
19
|
action_hash = PAUSE_HASH.clone
|
20
|
-
action_hash[
|
21
|
-
exec_time = ( Time.now +
|
22
|
-
action_hash[
|
20
|
+
action_hash[:action_name] = "#{get_action_id}"
|
21
|
+
exec_time = ( Time.now.utc + 30 ).iso8601
|
22
|
+
action_hash[:schedule_action_start_settings][:fixed_mode_schedule_action_start_settings][:time] = "#{exec_time}"
|
23
23
|
pipelines = []
|
24
24
|
pipelines << {
|
25
25
|
pipeline_id: "PIPELINE_0"
|
@@ -29,15 +29,16 @@ module Awslive
|
|
29
29
|
pipeline_id: "PIPELINE_1"
|
30
30
|
}
|
31
31
|
end
|
32
|
-
action_hash[
|
32
|
+
action_hash[:schedule_action_settings][:pause_state_settings][:pipelines] = pipelines
|
33
|
+
puts "#{action_hash}"
|
33
34
|
action_hash
|
34
35
|
end
|
35
36
|
|
36
37
|
def get_unpause_schedule_action
|
37
38
|
action_hash = PAUSE_HASH.clone
|
38
|
-
action_hash[
|
39
|
-
exec_time = ( Time.now +
|
40
|
-
action_hash[
|
39
|
+
action_hash[:action_name] = "#{get_action_id}"
|
40
|
+
exec_time = ( Time.now.utc + 30 ).iso8601
|
41
|
+
action_hash[:schedule_action_start_settings][:fixed_mode_schedule_action_start_settings][:time] = "#{exec_time}"
|
41
42
|
action_hash
|
42
43
|
end
|
43
44
|
|
@@ -70,11 +70,11 @@ module Awslive
|
|
70
70
|
end
|
71
71
|
elsif action_type == PAUSE
|
72
72
|
if start_type == FIXED
|
73
|
-
scheduled_action << @
|
73
|
+
scheduled_action << @pause_schedule_action.get_pause_schedule_action(data[:channel_class])
|
74
74
|
end
|
75
75
|
elsif action_type == UNPAUSE
|
76
76
|
if start_type == FIXED
|
77
|
-
scheduled_action << @
|
77
|
+
scheduled_action << @pause_schedule_action.get_unpause_schedule_action
|
78
78
|
end
|
79
79
|
end
|
80
80
|
unless scheduled_action.empty?
|