Sha256: b19baec62452700b3049e9140f2138d58ecad668ff3b681d2fc216ec35f21de9

Contents?: true

Size: 447 Bytes

Versions: 19

Compression:

Stored size: 447 Bytes

Contents

# This method is to help format messages to the user in a more recognizable way
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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
thunder_punch-0.1.6 lib/thunder_punch/utilities/utilities.rb
thunder_punch-0.1.5 lib/thunder_punch/utilities/utilities.rb
thunder_punch-0.1.4 lib/thunder_punch/utilities/utilities.rb
thunder_punch-0.1.3 lib/thunder_punch/utilities/utilities.rb
thunder_punch-0.1.2 lib/thunder_punch/utilities/utilities.rb
thunder_punch-0.1.1 lib/thunder_punch/utilities/utilities.rb
thunder_punch-0.1.0 lib/thunder_punch/utilities/utilities.rb
thunder_punch-0.0.14 lib/utilities/utilities.rb
thunder_punch-0.0.13 lib/utilities/utilities.rb
thunder_punch-0.0.12 lib/utilities/utilities.rb
thunder_punch-0.0.11 lib/utilities/utilities.rb
thunder_punch-0.0.10 lib/utilities/utilities.rb
thunder_punch-0.0.9 lib/utilities/utilities.rb
thunder_punch-0.0.8 lib/utilities/utilities.rb
thunder_punch-0.0.7 lib/utilities/utilities.rb
thunder_punch-0.0.6 lib/utilities/utilities.rb
thunder_punch-0.0.5 lib/utilities/utilities.rb
thunder_punch-0.0.4 lib/critical_juncture/utilities/utilities.rb
thunder_punch-0.0.3 lib/govpulse/utilities/utilities.rb