unimatrix-cli 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/unimatrix_cli.rb +11 -29
- data/lib/unimatrix_cli/command.rb +0 -1
- data/lib/unimatrix_cli/config/acceptance.yml +2 -2
- data/lib/unimatrix_cli/config/configuration.rb +1 -1
- data/lib/unimatrix_cli/config/production.yml +2 -2
- data/lib/unimatrix_cli/config/staging.yml +2 -2
- data/lib/unimatrix_cli/iris/stream_converter/create_command.rb +48 -0
- data/lib/unimatrix_cli/iris/stream_converter/describe_command.rb +37 -0
- data/lib/unimatrix_cli/keymaker/policy/destroy_command.rb +69 -0
- data/lib/unimatrix_cli/keymaker/policy/write_command.rb +156 -0
- data/lib/unimatrix_cli/keymaker/resource/list_command.rb +37 -0
- data/lib/unimatrix_cli/keymaker/resource_owner/find_command.rb +76 -0
- data/lib/unimatrix_cli/keymaker/resource_owner/invite_command.rb +60 -0
- data/lib/unimatrix_cli/keymaker/resource_owner/policies_command.rb +66 -0
- data/lib/unimatrix_cli/keymaker/resource_owner/remove_command.rb +92 -0
- data/lib/unimatrix_cli/keymaker/resource_server/list_command.rb +32 -0
- data/lib/unimatrix_cli/login_command.rb +1 -1
- data/lib/unimatrix_cli/version.rb +1 -1
- data/unimatrix-cli.gemspec +1 -1
- metadata +15 -31
- data/lib/unimatrix_cli/citadel/app/build_command.rb +0 -28
- data/lib/unimatrix_cli/citadel/app/console_command.rb +0 -17
- data/lib/unimatrix_cli/citadel/app/db_setup_command.rb +0 -17
- data/lib/unimatrix_cli/citadel/app/environment_command.rb +0 -30
- data/lib/unimatrix_cli/citadel/app/logs_command.rb +0 -17
- data/lib/unimatrix_cli/citadel/app/migrate_command.rb +0 -17
- data/lib/unimatrix_cli/citadel/app/migrate_status_command.rb +0 -17
- data/lib/unimatrix_cli/citadel/app/rake_command.rb +0 -18
- data/lib/unimatrix_cli/citadel/app/routes_command.rb +0 -17
- data/lib/unimatrix_cli/citadel/citadel_command.rb +0 -285
- data/lib/unimatrix_cli/citadel/instance/details_command.rb +0 -18
- data/lib/unimatrix_cli/citadel/instance/scp_command.rb +0 -48
- data/lib/unimatrix_cli/citadel/instance/ssh_command.rb +0 -29
- data/lib/unimatrix_cli/citadel/instance/status_command.rb +0 -17
- data/lib/unimatrix_cli/citadel/instance/user_data_command.rb +0 -17
- data/lib/unimatrix_cli/citadel/instance/user_data_logs_command.rb +0 -17
- data/lib/unimatrix_cli/zephyrus/input/create_command.rb +0 -40
- data/lib/unimatrix_cli/zephyrus/input/describe_command.rb +0 -35
- data/lib/unimatrix_cli/zephyrus/input/list_command.rb +0 -38
- data/lib/unimatrix_cli/zephyrus/output/list_command.rb +0 -44
- data/lib/unimatrix_cli/zephyrus/recording/configuration_command.rb +0 -43
- data/lib/unimatrix_cli/zephyrus/rendition/list_command.rb +0 -40
- data/lib/unimatrix_cli/zephyrus/routing/configuration_command.rb +0 -43
- data/lib/unimatrix_cli/zephyrus/transcoding/configuration_command.rb +0 -55
- data/lib/unimatrix_cli/zephyrus/transcribing/configuration_command.rb +0 -55
- data/lib/unimatrix_cli/zephyrus/transmutation/configuration_command.rb +0 -55
@@ -1,55 +0,0 @@
|
|
1
|
-
module UnimatrixCLI
|
2
|
-
module Zephyrus
|
3
|
-
module Transcoding
|
4
|
-
class ConfigurationCommand < Command
|
5
|
-
|
6
|
-
option :key, "The key for an input", type: :string, required: true
|
7
|
-
|
8
|
-
synopsis "Display transcoding configuration for an input"
|
9
|
-
|
10
|
-
def execute
|
11
|
-
response = transcoding_configuration_request
|
12
|
-
if response[ 'outputs' ].nil?
|
13
|
-
write(
|
14
|
-
message: "Configuration could not be found: #{ response.inspect }",
|
15
|
-
error: true
|
16
|
-
)
|
17
|
-
else
|
18
|
-
response[ 'outputs' ].each do | output |
|
19
|
-
write( message: parse_configuration_output( output ) )
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
#----------------------------------------------------------------------------
|
25
|
-
|
26
|
-
private; def transcoding_configuration_request
|
27
|
-
endpoint = "#{ Configuration.default_config[ 'zephyrus_url' ] }/" +
|
28
|
-
"transcoding/configuration?key=#{ @options[ :key ] }"
|
29
|
-
|
30
|
-
# Unimatrix SDK cannot handle Zephyrus configuration responses
|
31
|
-
make_request( endpoint, 'Get' )
|
32
|
-
end
|
33
|
-
|
34
|
-
private; def parse_configuration_output( output )
|
35
|
-
output = output.map do | key, value |
|
36
|
-
if key == "renditions"
|
37
|
-
renditions = value.map { | rendition | parse_rendition( rendition ) }.join
|
38
|
-
"renditions:\n*\n#{ renditions }"
|
39
|
-
else
|
40
|
-
"#{ key }: #{ value }\n"
|
41
|
-
end
|
42
|
-
end
|
43
|
-
output << "\n"
|
44
|
-
end
|
45
|
-
|
46
|
-
private; def parse_rendition( rendition )
|
47
|
-
rendition = rendition.map do | key, value |
|
48
|
-
"#{ key }: #{ value }\n"
|
49
|
-
end
|
50
|
-
rendition << "*\n"
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
module UnimatrixCLI
|
2
|
-
module Zephyrus
|
3
|
-
module Transcribing
|
4
|
-
class ConfigurationCommand < Command
|
5
|
-
|
6
|
-
option :key, "The key for an input", type: :string, required: true
|
7
|
-
|
8
|
-
synopsis "Display transcribing configuration for an input"
|
9
|
-
|
10
|
-
def execute
|
11
|
-
response = transcribing_configuration_request
|
12
|
-
if response[ 'outputs' ].nil?
|
13
|
-
write(
|
14
|
-
message: "Configuration could not be found: #{ response.inspect }",
|
15
|
-
error: true
|
16
|
-
)
|
17
|
-
else
|
18
|
-
response[ 'outputs' ].each do | output |
|
19
|
-
write( message: parse_configuration_output( output ) )
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
#----------------------------------------------------------------------------
|
25
|
-
|
26
|
-
private; def transcribing_configuration_request
|
27
|
-
endpoint = "#{ Configuration.default_config[ 'zephyrus_url' ] }/" +
|
28
|
-
"transcribing/configuration?key=#{ @options[ :key ] }"
|
29
|
-
|
30
|
-
# Unimatrix SDK cannot handle Zephyrus configuration responses
|
31
|
-
make_request( endpoint, 'Get' )
|
32
|
-
end
|
33
|
-
|
34
|
-
private; def parse_configuration_output( output )
|
35
|
-
output = output.map do | key, value |
|
36
|
-
if key == "rendition"
|
37
|
-
renditions = value.map { | rendition | parse_rendition( rendition ) }.join
|
38
|
-
"rendition:\n*\n#{ renditions }"
|
39
|
-
else
|
40
|
-
"#{ key }: #{ value }\n"
|
41
|
-
end
|
42
|
-
end
|
43
|
-
output << "\n"
|
44
|
-
end
|
45
|
-
|
46
|
-
private; def parse_rendition( rendition )
|
47
|
-
rendition = rendition.map do | key, value |
|
48
|
-
"#{ key }: #{ value }\n"
|
49
|
-
end
|
50
|
-
rendition << "*\n"
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
module UnimatrixCLI
|
2
|
-
module Zephyrus
|
3
|
-
module Transmutation
|
4
|
-
class ConfigurationCommand < Command
|
5
|
-
|
6
|
-
option :key, "The key for an input", type: :string, required: true
|
7
|
-
|
8
|
-
synopsis "Display transmutation configuration for an input"
|
9
|
-
|
10
|
-
def execute
|
11
|
-
response = transmutation_configuration_request
|
12
|
-
if response[ 'outputs' ].nil?
|
13
|
-
write(
|
14
|
-
message: "Configuration could not be found: #{ response.inspect }",
|
15
|
-
error: true
|
16
|
-
)
|
17
|
-
else
|
18
|
-
response[ 'outputs' ].each do | output |
|
19
|
-
write( message: parse_configuration_output( output ) )
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
#----------------------------------------------------------------------------
|
25
|
-
|
26
|
-
private; def transmutation_configuration_request
|
27
|
-
endpoint = "#{ Configuration.default_config[ 'zephyrus_url' ] }/" +
|
28
|
-
"transmutation/onfiguration?key=#{ @options[ :key ] }"
|
29
|
-
|
30
|
-
# Unimatrix SDK cannot handle Zephyrus configuration responses
|
31
|
-
make_request( endpoint, 'Get' )
|
32
|
-
end
|
33
|
-
|
34
|
-
private; def parse_configuration_output( output )
|
35
|
-
output = output.map do | key, value |
|
36
|
-
if key == "rendition"
|
37
|
-
renditions = value.map { | rendition | parse_rendition( rendition ) }.join
|
38
|
-
"rendition:\n*\n#{ renditions }"
|
39
|
-
else
|
40
|
-
"#{ key }: #{ value }\n"
|
41
|
-
end
|
42
|
-
end
|
43
|
-
output << "\n"
|
44
|
-
end
|
45
|
-
|
46
|
-
private; def parse_rendition( rendition )
|
47
|
-
rendition = rendition.map do | key, value |
|
48
|
-
"#{ key }: #{ value }\n"
|
49
|
-
end
|
50
|
-
rendition << "*\n"
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|