Class: HammerCLIKatello::Organization::InfoCommand
- Inherits:
-
HammerCLIForeman::Organization::InfoCommand
- Object
- HammerCLIForeman::Organization::InfoCommand
- HammerCLIKatello::Organization::InfoCommand
- Includes:
- ResolverCommons
- Defined in:
- lib/hammer_cli_katello/organization.rb
Instance Method Summary collapse
Methods included from ResolverCommons
Instance Method Details
#extend_data(data) ⇒ Object
40 41 42 43 |
# File 'lib/hammer_cli_katello/organization.rb', line 40 def extend_data(data) setup_cdn_type(data) data end |
#setup_cdn_type(data) ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'lib/hammer_cli_katello/organization.rb', line 45 def setup_cdn_type(data) types = { 'export_sync' => _("Export Sync"), 'network_sync' => _("Network Sync"), 'redhat_cdn' => _("Red Hat CDN"), 'custom_cdn' => _("Custom CDN") } data["cdn_configuration"].merge!("type_label" => types[data["cdn_configuration"]["type"]]) end |