-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.rb
35 lines (32 loc) · 1006 Bytes
/
main.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# Bundler and Minimizer for Web files v3.1.1 #
# #
# Copyright 2017, PedroHenriques #
# http://www.pedrojhenriques.com #
# https://github.com/PedroHenriques #
# #
# Free to use under the MIT license. #
# http://www.opensource.org/licenses/mit-license.php #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # #
require "#{File.dirname(__FILE__)}/includes/autoloader.rb"
begin
# instantiate the Application class
application_obj = Application.new()
# start the program
application_obj.run()
rescue Interrupt => e
# check if the Application class was instantiated
if application_obj != nil
#it was
# print outro message
application_obj.printOutroMsg()
else
# it wasn't
puts("\n")
end
rescue Exception => e
puts "\n=> ERROR: #{e}"
puts e.backtrace.join("\n")
end