Class: HammerCLIForeman::Output::Formatters::ServerFormatter
- Inherits:
-
HammerCLI::Output::Formatters::FieldFormatter
- Object
- HammerCLI::Output::Formatters::FieldFormatter
- HammerCLIForeman::Output::Formatters::ServerFormatter
- Defined in:
- lib/hammer_cli_foreman/output/formatters.rb
Instance Method Summary collapse
Instance Method Details
#format(server) ⇒ Object
24 25 26 |
# File 'lib/hammer_cli_foreman/output/formatters.rb', line 24 def format(server) "%s (%s)" % [server[:name], server[:url]] unless server.nil? end |
#tags ⇒ Object
20 21 22 |
# File 'lib/hammer_cli_foreman/output/formatters.rb', line 20 def [:flat] end |