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.
- checksums.yaml +13 -5
- data/lib/zillabyte-cli/version.rb +1 -1
- data/lib/zillabyte/api/components.rb +2 -2
- data/lib/zillabyte/cli/base.rb +15 -0
- data/lib/zillabyte/cli/data.rb +31 -1
- data/lib/zillabyte/cli/download.rb +67 -0
- data/lib/zillabyte/cli/flows.rb +91 -37
- data/lib/zillabyte/helpers.rb +12 -1
- metadata +28 -43
- data/lib/#zillabyte-cli.rb# +0 -5
- data/lib/zillabyte/cli/#logs.rb# +0 -12
- data/lib/zillabyte/cli/#repl.rb# +0 -43
- data/lib/zillabyte/cli/templates/python/#simple_function.py# +0 -27
- data/lib/zillabyte/runner.rb +0 -6
- data/lib/zillabyte/runner/app_runner.rb +0 -320
- data/lib/zillabyte/runner/component_operation.rb +0 -636
- data/lib/zillabyte/runner/component_runner.rb +0 -337
- data/lib/zillabyte/runner/multilang_operation.rb +0 -1662
- data/lib/zillabyte/runner/operation.rb +0 -18
@@ -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
|
-
|