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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/unimatrix_cli.rb +11 -29
  4. data/lib/unimatrix_cli/command.rb +0 -1
  5. data/lib/unimatrix_cli/config/acceptance.yml +2 -2
  6. data/lib/unimatrix_cli/config/configuration.rb +1 -1
  7. data/lib/unimatrix_cli/config/production.yml +2 -2
  8. data/lib/unimatrix_cli/config/staging.yml +2 -2
  9. data/lib/unimatrix_cli/iris/stream_converter/create_command.rb +48 -0
  10. data/lib/unimatrix_cli/iris/stream_converter/describe_command.rb +37 -0
  11. data/lib/unimatrix_cli/keymaker/policy/destroy_command.rb +69 -0
  12. data/lib/unimatrix_cli/keymaker/policy/write_command.rb +156 -0
  13. data/lib/unimatrix_cli/keymaker/resource/list_command.rb +37 -0
  14. data/lib/unimatrix_cli/keymaker/resource_owner/find_command.rb +76 -0
  15. data/lib/unimatrix_cli/keymaker/resource_owner/invite_command.rb +60 -0
  16. data/lib/unimatrix_cli/keymaker/resource_owner/policies_command.rb +66 -0
  17. data/lib/unimatrix_cli/keymaker/resource_owner/remove_command.rb +92 -0
  18. data/lib/unimatrix_cli/keymaker/resource_server/list_command.rb +32 -0
  19. data/lib/unimatrix_cli/login_command.rb +1 -1
  20. data/lib/unimatrix_cli/version.rb +1 -1
  21. data/unimatrix-cli.gemspec +1 -1
  22. metadata +15 -31
  23. data/lib/unimatrix_cli/citadel/app/build_command.rb +0 -28
  24. data/lib/unimatrix_cli/citadel/app/console_command.rb +0 -17
  25. data/lib/unimatrix_cli/citadel/app/db_setup_command.rb +0 -17
  26. data/lib/unimatrix_cli/citadel/app/environment_command.rb +0 -30
  27. data/lib/unimatrix_cli/citadel/app/logs_command.rb +0 -17
  28. data/lib/unimatrix_cli/citadel/app/migrate_command.rb +0 -17
  29. data/lib/unimatrix_cli/citadel/app/migrate_status_command.rb +0 -17
  30. data/lib/unimatrix_cli/citadel/app/rake_command.rb +0 -18
  31. data/lib/unimatrix_cli/citadel/app/routes_command.rb +0 -17
  32. data/lib/unimatrix_cli/citadel/citadel_command.rb +0 -285
  33. data/lib/unimatrix_cli/citadel/instance/details_command.rb +0 -18
  34. data/lib/unimatrix_cli/citadel/instance/scp_command.rb +0 -48
  35. data/lib/unimatrix_cli/citadel/instance/ssh_command.rb +0 -29
  36. data/lib/unimatrix_cli/citadel/instance/status_command.rb +0 -17
  37. data/lib/unimatrix_cli/citadel/instance/user_data_command.rb +0 -17
  38. data/lib/unimatrix_cli/citadel/instance/user_data_logs_command.rb +0 -17
  39. data/lib/unimatrix_cli/zephyrus/input/create_command.rb +0 -40
  40. data/lib/unimatrix_cli/zephyrus/input/describe_command.rb +0 -35
  41. data/lib/unimatrix_cli/zephyrus/input/list_command.rb +0 -38
  42. data/lib/unimatrix_cli/zephyrus/output/list_command.rb +0 -44
  43. data/lib/unimatrix_cli/zephyrus/recording/configuration_command.rb +0 -43
  44. data/lib/unimatrix_cli/zephyrus/rendition/list_command.rb +0 -40
  45. data/lib/unimatrix_cli/zephyrus/routing/configuration_command.rb +0 -43
  46. data/lib/unimatrix_cli/zephyrus/transcoding/configuration_command.rb +0 -55
  47. data/lib/unimatrix_cli/zephyrus/transcribing/configuration_command.rb +0 -55
  48. 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