Method: GitReflow::Sandbox#say

Defined in:
lib/git_reflow/sandbox.rb

#say(message, label_type = :plain) ⇒ Object



49
50
51
52
53
54
55
56
# File 'lib/git_reflow/sandbox.rb', line 49

def say(message, label_type = :plain)
  if COLOR_FOR_LABEL[label_type]
    label = (label_type.to_s == "plain") ? "" : "[#{ label_type.to_s.gsub('_', ' ').colorize(COLOR_FOR_LABEL[label_type]) }] "
    puts "#{label}#{message}"
  else
    puts message
  end
end