Sha256: e1ff3495d573c2f6f7d565f3fe5fb3a4422f899c2a4d558b8506f3e50ca8641b

Contents?: true

Size: 440 Bytes

Versions: 17

Compression:

Stored size: 440 Bytes

Contents

# encoding: utf-8

require 'colored'
require 'logger'

module Wordmove
  class Logger < ::Logger

    def task(title)
      puts ""
      title = " ✓ #{title} "
      puts "▬" * 2 + title.green + "▬" * (70 - title.length)
    end

    def task_step(local_step, title)
      if local_step
        puts "    local".cyan + " | ".black + title
      else
        puts "   remote".yellow + " | ".black + title
      end
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
wordmove-1.0.14 lib/wordmove/logger.rb
wordmove-1.0.13 lib/wordmove/logger.rb
wordmove-1.0.12 lib/wordmove/logger.rb
wordmove-1.0.11 lib/wordmove/logger.rb
wordmove-1.0.10 lib/wordmove/logger.rb
wordmove-1.0.9 lib/wordmove/logger.rb
wordmove-1.0.8 lib/wordmove/logger.rb
wordmove-1.0.7 lib/wordmove/logger.rb
wordmove-1.0.6 lib/wordmove/logger.rb
wordmove-1.0.4 lib/wordmove/logger.rb
wordmove-1.0.3 lib/wordmove/logger.rb
wordmove-1.0.2 lib/wordmove/logger.rb
wordmove-1.0.1 lib/wordmove/logger.rb
wordmove-1.0.0 lib/wordmove/logger.rb
wordmove-0.1.0.rc lib/wordmove/logger.rb
wordmove-0.1.0.beta lib/wordmove/logger.rb
wordmove-0.1.0.alpha lib/wordmove/logger.rb