Module: WifiWand::CommandOutputFormatter
- Defined in:
- lib/wifi-wand/models/helpers/command_output_formatter.rb
Class Method Summary collapse
- .banner_line ⇒ Object
- .command_attempt_as_string(command) ⇒ Object
- .command_result_as_string(output) ⇒ Object
Class Method Details
.banner_line ⇒ Object
6 7 8 |
# File 'lib/wifi-wand/models/helpers/command_output_formatter.rb', line 6 def @banner_line ||= '-' * 79 end |
.command_attempt_as_string(command) ⇒ Object
10 11 12 |
# File 'lib/wifi-wand/models/helpers/command_output_formatter.rb', line 10 def command_attempt_as_string(command) "\n\n#{}\nCommand: #{command}\n" end |
.command_result_as_string(output) ⇒ Object
14 15 16 |
# File 'lib/wifi-wand/models/helpers/command_output_formatter.rb', line 14 def command_result_as_string(output) "#{output}#{}\n\n" end |