File: simple_text.rb

package info (click to toggle)
ruby-sshkit 1.21.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 700 kB
  • sloc: ruby: 3,522; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module SSHKit

  module Formatter

    class SimpleText < Pretty

      # Historically, SimpleText formatter was used to disable coloring, so we maintain that behaviour
      def colorize(obj, _color, _mode=nil)
        obj.to_s
      end

      def format_message(_verbosity, message, _uuid=nil)
        message
      end

    end

  end

end