-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphobos_boot.rb
More file actions
34 lines (32 loc) · 916 Bytes
/
phobos_boot.rb
File metadata and controls
34 lines (32 loc) · 916 Bytes
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
# Use this file to load your code
puts <<~ART
______ _ _
| ___ \\ | | |
| |_/ / |__ ___ | |__ ___ ___
| __/| '_ \\ / _ \\| '_ \\ / _ \\/ __|
| | | | | | (_) | |_) | (_) \\__ \\
\\_| |_| |_|\\___/|_.__/ \\___/|___/
ART
puts "
phobos_boot.rb - find this file at #{File.expand_path(__FILE__)}
"
require 'net/http'
require_relative 'app/api_client/http_client.rb'
require_relative 'app/api_client/circuit_breaker.rb'
require_relative 'app/api_client/sendgrid.rb'
require_relative 'app/api_client/mailgun.rb'
require_relative 'app/mailman_config.rb'
require_relative 'app/consumers/sendgrid.rb'
require_relative 'app/consumers/mailgun.rb'
require_relative 'app/consumers/bookkeeper.rb'
module Mailman
def self.root
File.dirname __FILE__
end
def log(msg)
@logger ||= Logger.new(STDOUT)
@logger.level = Logger::INFO
@logger.info(msg)
end
end
include Mailman