zillabyte-cli 0.9.20 → 0.9.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +0,0 @@
1
- require 'json'
2
- require 'mkfifo'
3
-
4
-
5
- # Shared state between operations
6
- module Zillabyte; module Runner; class Operation
7
-
8
- # Format a message for display
9
- def self.truncate_message(msg)
10
- return msg if(!msg.instance_of?(String))
11
- t_length = 50 # truncates entries to this length
12
- m_length = msg.length
13
- msg_out = m_length > t_length ? msg[0..t_length-3]+"..." : msg
14
- msg_out
15
- end
16
-
17
- end; end; end
18
-