Sha256: 92fcb16ebd11ab15d4f97901d5232b8ab017048383389d8680f1691ff58f94ab

Contents?: true

Size: 692 Bytes

Versions: 9

Compression:

Stored size: 692 Bytes

Contents

# frozen_string_literal: true
module Bundler
  module UI
    class Silent
      def add_color(string, color)
        string
      end

      def info(message, newline = nil)
      end

      def confirm(message, newline = nil)
      end

      def warn(message, newline = nil)
      end

      def error(message, newline = nil)
      end

      def debug(message, newline = nil)
      end

      def debug?
        false
      end

      def quiet?
        false
      end

      def ask(message)
      end

      def level=(name)
      end

      def level(name = nil)
      end

      def trace(message, newline = nil)
      end

      def silence
        yield
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bundler-1.13.7 lib/bundler/ui/silent.rb
bundler-1.13.6 lib/bundler/ui/silent.rb
bundler-1.13.5 lib/bundler/ui/silent.rb
bundler-1.13.4 lib/bundler/ui/silent.rb
bundler-1.13.3 lib/bundler/ui/silent.rb
bundler-1.13.2 lib/bundler/ui/silent.rb
bundler-1.13.1 lib/bundler/ui/silent.rb
bundler-1.13.0 lib/bundler/ui/silent.rb
bundler-1.13.0.rc.2 lib/bundler/ui/silent.rb