kronk 1.7.8 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,49 +0,0 @@
1
- class Kronk
2
-
3
- ##
4
- # Generic base class to inherit from for creating a player output.
5
-
6
- class Player::Output
7
-
8
- ##
9
- # New instance initializes @player and @start_time
10
-
11
- def initialize player
12
- @player = player
13
- @start_time = Time.now
14
- end
15
-
16
-
17
- ##
18
- # Called right before the queue starts being processed.
19
- # Sets @start_time to Time.now.
20
-
21
- def start
22
- @start_time = Time.now
23
- end
24
-
25
-
26
- ##
27
- # Called after kronk was run without errors.
28
-
29
- def result kronk, mutex=nil
30
- end
31
-
32
-
33
- ##
34
- # Called if an error was raised while running kronk.
35
-
36
- def error err, kronk=nil, mutex=nil
37
- end
38
-
39
-
40
- ##
41
- # Called after the queue is done being processed.
42
- # If the return value is true-ish, command will exit with status 0,
43
- # otherwise exits with status 1.
44
-
45
- def completed
46
- true
47
- end
48
- end
49
- end