Sha256: 0eb359cf3f533a287ed21f2ca0b723b9e5d78ad49fd1584edc7f278ab53a3a0c

Contents?: true

Size: 931 Bytes

Versions: 6

Compression:

Stored size: 931 Bytes

Contents

# frozen_string_literal: true

module Dsu
  module Presenters
    module Export
      module Messages
        def display_export_prompt
          raise NotImplementedError
        end

        def display_nothing_to_export_message
          puts apply_theme(I18n.t('subcommands.export.messages.nothing_to_export'), theme_color: color_theme.info)
        end

        private

        def display_cancelled_message
          puts apply_theme(I18n.t('subcommands.export.messages.cancelled'), theme_color: color_theme.info)
        end

        def display_exported_message
          puts apply_theme(I18n.t('subcommands.export.messages.exported'), theme_color: color_theme.success)
        end

        def display_exported_to_message(file_path:)
          puts apply_theme(I18n.t('subcommands.export.messages.exported_to', file_path: file_path),
            theme_color: color_theme.success)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dsu-2.4.4 lib/dsu/presenters/export/messages.rb
dsu-2.4.3 lib/dsu/presenters/export/messages.rb
dsu-2.4.2 lib/dsu/presenters/export/messages.rb
dsu-2.4.1 lib/dsu/presenters/export/messages.rb
dsu-2.4.0 lib/dsu/presenters/export/messages.rb
dsu-2.3.2 lib/dsu/presenters/export/messages.rb