Sha256: 9960ed80b97b673792eccaa846b4f45d111d6aef41e60fa98f428476bf4d4eb3
Contents?: true
Size: 786 Bytes
Versions: 5
Compression:
Stored size: 786 Bytes
Contents
# frozen_string_literal: true require 'hammer_cli_foreman/interface' module HammerCLIForemanRemoteExecution class InterfaceExtensionsInfo < ::HammerCLI::CommandExtensions output do |definition| definition.append do field :execution, _('Execution'), Fields::Boolean end end end module InterfaceExtensionsList def format_type(nic) type = super(nic) if nic['execution'] if nic['primary'] || nic['provision'] type[-1] = ', '+_('execution') +')' else type += ' ('+_('execution') +')' end end type end end ::HammerCLIForeman::Interface.singleton_class.prepend InterfaceExtensionsList ::HammerCLIForeman::Interface::InfoCommand.extend_with(InterfaceExtensionsInfo.new) end
Version data entries
5 entries across 5 versions & 1 rubygems