Class: Wordmove::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/wordmove/logger.rb

Constant Summary collapse

MAX_LINE =
70

Instance Method Summary collapse

Instance Method Details

#task(title) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/wordmove/logger.rb', line 10

def task(title)
  prefix = "" * 2
  title = "#{title} "
  padding = "" * padding_length(title)

  puts "\n" + prefix + title.green + padding
end

#task_step(local_step, title) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/wordmove/logger.rb', line 18

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