Class: HammerCLIForeman::Interface
- Inherits:
-
Command
- Object
- Command
- HammerCLIForeman::Interface
- Defined in:
- lib/hammer_cli_foreman/interface.rb
Defined Under Namespace
Modules: InterfaceUpdate Classes: CreateCommand, DeleteCommand, InfoCommand, ListCommand, UpdateCommand
Class Method Summary collapse
Class Method Details
.format_type(nic) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/hammer_cli_foreman/interface.rb', line 8 def self.format_type(nic) flags = [] flags << _('primary') if nic['primary'] flags << _('provision') if nic['provision'] type = nic['type'] if !flags.empty? type += " (#{flags.join(', ')})" end type end |