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
41 42 43 44 45 46 47 48 49 |
# File 'lib/hammer_cli_katello/organization.rb', line 41 def extend_data(data) data["simple_content_access_label"] = if data["simple_content_access"] _("Enabled") else _("Disabled") end setup_cdn_type(data) data end |
#setup_cdn_type(data) ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'lib/hammer_cli_katello/organization.rb', line 51 def setup_cdn_type(data) types = { 'export_sync' => _("Export Sync"), 'network_sync' => _("Network Sync"), 'redhat_cdn' => _("Red Hat CDN") } data["cdn_configuration"].merge!("type_label" => types[data["cdn_configuration"]["type"]]) end |