Sha256: 3fc9b517cee2960abdb99f26170bfbbfda6e2a5dff0021cab16bd0f01756e488

Contents?: true

Size: 854 Bytes

Versions: 6

Compression:

Stored size: 854 Bytes

Contents

require 'thor'
require 'marv/cli'
require 'marv/global'

BANNER = <<-TEXT

  ::::    ::::      :::     :::::::::  :::     :::
  +:+:+: :+:+:+   :+: :+:   :+:    :+: :+:     :+:
  +:+ +:+:+ +:+  +:+   +:+  +:+    +:+ +:+     +:+
  +#+  +:+  +#+ +#++:++#++: +#++:++#:  +#+     +:+
  +#+       +#+ +#+     +#+ +#+    +#+  +#+   +#+
  #+#       #+# #+#     #+# #+#    #+#   #+#+#+#
  ###       ### ###     ### ###    ###     ###

TEXT

module Marv

  def self.root
    ::File.expand_path(::File.join(::File.dirname(__FILE__), '..'))
  end

  def self.banner_message
    puts BANNER
  end

  def self.exit_message
    time = ::Time.now.strftime('%T')
    puts  "\n\n#{time} - INFO - Bye bye..."
  end

  def self.colorize(text, color)
    @colorizer ||= Thor::Shell::Color.new
    @colorizer.set_color(text, color)
  end

end

trap 'SIGINT' do
  exit 130
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
marv-0.8.2 lib/marv.rb
marv-0.8.0 lib/marv.rb
marv-0.7.3 lib/marv.rb
marv-0.7.2 lib/marv.rb
marv-0.7.1 lib/marv.rb
marv-0.7.0 lib/marv.rb