Sha256: 4a968785fbea73451f60737254427009dabe8785012476db3fd0e2e2d158fce8

Contents?: true

Size: 666 Bytes

Versions: 5

Compression:

Stored size: 666 Bytes

Contents

module Gitrob
  class CLI
    module Commands
      class Banner < Gitrob::CLI::Command
        def initialize(options)
          @options = options
          output banner if options[:banner]
          info "Starting Gitrob version #{Gitrob::VERSION} " \
          "at #{Time.now.strftime('%Y-%m-%d %H:%M %Z')}"
          debug "Debugging mode enabled"
        end

        private

        def banner
          "     _ _           _\n" \
          " ___|_| |_ ___ ___| |_\n" \
          "| . | |  _|  _| . | . |\n" \
          "|_  |_|_| |_| |___|___|\n" \
          "|___|".light_blue + " By @michenriksen\n\n".light_white
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gitrob-1.1.2 lib/gitrob/cli/commands/banner.rb
gitrob-1.1.1 lib/gitrob/cli/commands/banner.rb
gitrob-1.1.0 lib/gitrob/cli/commands/banner.rb
gitrob-1.0.1 lib/gitrob/cli/commands/banner.rb
gitrob-1.0.0 lib/gitrob/cli/commands/banner.rb