Sha256: cbd1fca40f57c775f5db4cc5879b984fbdba0dc30aa448386319f5545831cc5e

Contents?: true

Size: 561 Bytes

Versions: 1

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

require "rfix"
require "cli/ui"

module Rfix::Log
  def say(message)
    CLI::UI.puts("{{v}} #{message}")
  end

  def say_error(message)
    CLI::UI.puts("{{x}} #{message}")
  end

  def say_error_sub(message)
    CLI::UI.puts(message.to_s)
  end

  def say_debug(message)
    unless Rfix.debug?
      CLI::UI.puts("{{*}} [{{info:Debug}}] #{message}")
    end
  end

  def say_abort(message)
    CLI::UI.puts("{{x}} #{message}")
    exit 1
  end

  def say_exit(message)
    CLI::UI.puts("{{v}} #{message}")
    exit 0
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rfix-1.0.8.pre.109 lib/rfix/log.rb