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: 03d107262de59f277e5e5903961c91cf84eaafbf2dda631b4dd9b176fca2eac1
4
- data.tar.gz: 4487fd10f00e8dc080be699c54964426857ce998de1806ed8909304edff501b3
3
+ metadata.gz: a11c3375ccc5456235263b78f407cf2d1c533775dacb8f8bb60a5cfadc2075a4
4
+ data.tar.gz: e1f7cf9a62c6726352ae5900e0f1bb54176a688067855b932d9ac8d10d2d0ea7
5
5
  SHA512:
6
- metadata.gz: 33d04751ddc84b56f059b2fcfc96e7fa0a5d44142e53ccbc6841735dca9f3541846522f0bd4dde1432a7f1b07174682397f1ac509cf6640425708c8c181502ac
7
- data.tar.gz: e169515b115906b79e9faea507a17193f1d537d90984e1151731c157760a003aa7241048645ba4344564c1ef145e480764f9953f2baa747d79c918638d14ca4d
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["actionName"] = "#{get_action_id}"
21
- exec_time = ( Time.now + 10 ).iso8601
22
- action_hash["scheduleActionStartSettings"]["fixedModeScheduleActionStartSettings"]["time"] = "#{exec_time}"
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["scheduleActionSettings"]["pauseStateSettings"]["pipelines"] = pipelines
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["actionName"] = "#{get_action_id}"
39
- exec_time = ( Time.now + 10 ).iso8601
40
- action_hash["scheduleActionStartSettings"]["fixedModeScheduleActionStartSettings"]["time"] = "#{exec_time}"
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 << @pause_scheduler.get_pause_schedule_action(data[:channel_class])
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 << @pause_scheduler.get_unpause_schedule_action(data[:channel_class])
77
+ scheduled_action << @pause_schedule_action.get_unpause_schedule_action
78
78
  end
79
79
  end
80
80
  unless scheduled_action.empty?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awslive-inputlooper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maheshwaran G