Sha256: f8d6facb5d7e17f2f4a022a336d5a6512b8cad8140c58fbabe0f949b8ed1b1df

Contents?: true

Size: 874 Bytes

Versions: 15

Compression:

Stored size: 874 Bytes

Contents

# frozen_string_literal: true

#
# Copyright 2019-Present Sonatype Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Base formatter class
class Formatter
  def initialize
    @pastel = Pastel.new
  end

  def fetch_results
    raise 'must implement get_results method in subclass'
  end

  def do_print
    raise 'must implement do_print method in subclass'
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
chelsea-0.0.43 lib/chelsea/formatters/formatter.rb
chelsea-0.0.42 lib/chelsea/formatters/formatter.rb
chelsea-0.0.41 lib/chelsea/formatters/formatter.rb
chelsea-0.0.40 lib/chelsea/formatters/formatter.rb
chelsea-0.0.38 lib/chelsea/formatters/formatter.rb
chelsea-0.0.37 lib/chelsea/formatters/formatter.rb
chelsea-0.0.36 lib/chelsea/formatters/formatter.rb
chelsea-0.0.35 lib/chelsea/formatters/formatter.rb
chelsea-0.0.34 lib/chelsea/formatters/formatter.rb
chelsea-0.0.33 lib/chelsea/formatters/formatter.rb
chelsea-0.0.32 lib/chelsea/formatters/formatter.rb
chelsea-0.0.31 lib/chelsea/formatters/formatter.rb
chelsea-0.0.30 lib/chelsea/formatters/formatter.rb
chelsea-0.0.29 lib/chelsea/formatters/formatter.rb
chelsea-0.0.28 lib/chelsea/formatters/formatter.rb