Methods

Class/Module Index [+]

Quicksearch

HammerCLIForeman::Interface

Public Class Methods

format_type(nic) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.