Method: Ayadn::Status#info

Defined in:
lib/ayadn/status.rb

#info(status, message, color = nil) ⇒ Object




544
545
546
547
548
549
550
551
552
553
# File 'lib/ayadn/status.rb', line 544

def info(status, message, color = nil)
  if color.nil?
    lamb = lambda { say_nocolor(status.to_sym, message.to_s) }
  else
    lamb = lambda { @thor.say_status(status.to_sym, message.to_s, color.to_sym) }
  end
  puts "\n"
  lamb.call
  puts "\n"
end