Sha256: d12846a2a6ec0ef1952bc3e3504d777e68e85b38f47587a3a086cae71947993e

Contents?: true

Size: 511 Bytes

Versions: 15

Compression:

Stored size: 511 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}")
  end

  def say_debug(message)
    CLI::UI.puts("{{*}} #{message}")
  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

15 entries across 15 versions & 1 rubygems

Version Path
rfix-1.0.7.pre.67 lib/rfix/log.rb
rfix-1.0.7.pre.66 lib/rfix/log.rb
rfix-1.0.7.pre.65 lib/rfix/log.rb
rfix-1.0.7.pre.61 lib/rfix/log.rb
rfix-1.0.6.pre.60 lib/rfix/log.rb
rfix-1.0.7 lib/rfix/log.rb
rfix-1.0.5.pre.58 lib/rfix/log.rb
rfix-1.0.6 lib/rfix/log.rb
rfix-1.0.5.pre.pre.57 lib/rfix/log.rb
rfix-1.0.5 lib/rfix/log.rb
rfix-1.0.4 lib/rfix/log.rb
rfix-1.0.3 lib/rfix/log.rb
rfix-1.0.2 lib/rfix/log.rb
rfix-1.0.1 lib/rfix/log.rb
rfix-1.0.0 lib/rfix/log.rb