Top Level Namespace

Defined Under Namespace

Classes: AssetsVersion

Instance Method Summary collapse

Instance Method Details

#alert_user(message, options = {}) ⇒ Object

This method is to help format messages to the user in a more recognizable way



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/thunder_punch/utilities/utilities.rb', line 2

def alert_user(message, options={})
  abort = options.delete(:abort) || false
  wrapped_message = <<-EOF
  \n\n
  *******************************************************************\n

    #{message} \n

  *******************************************************************
  \n\n
  EOF

  if abort
    abort(wrapped_message)
  else
    puts wrapped_message
  end
end