Module: WifiWand::CommandOutputFormatter

Defined in:
lib/wifi-wand/models/helpers/command_output_formatter.rb

Class Method Summary collapse

Class Method Details



6
7
8
# File 'lib/wifi-wand/models/helpers/command_output_formatter.rb', line 6

def banner_line
  @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#{banner_line}\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}#{banner_line}\n\n"
end