forked from External/greenlight
* Added check to config rake file * Update configuration.rake
This commit is contained in:
parent
7429349d3b
commit
5521402ee7
|
@ -29,12 +29,14 @@ namespace :conf do
|
|||
test_request("#{ENV['BIGBLUEBUTTON_ENDPOINT']}api/getMeetings?checksum=#{checksum}")
|
||||
passed
|
||||
|
||||
# Tests the checksum on the getMeetings api call
|
||||
if ENV['ALLOW_MAIL_NOTIFICATIONS'] == 'true'
|
||||
# Tests the configuration of the SMTP Server
|
||||
print "Checking SMTP connection"
|
||||
test_smtp
|
||||
passed
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_smtp
|
||||
smtp = Net::SMTP.new(ENV['SMTP_SERVER'], ENV['SMTP_PORT'])
|
||||
|
@ -50,7 +52,7 @@ rescue => exc
|
|||
failed("Error connecting to SMTP - #{exc}")
|
||||
end
|
||||
|
||||
# takes the full URL including the protocol
|
||||
# Takes the full URL including the protocol
|
||||
def test_request(url)
|
||||
uri = URI(url)
|
||||
res = Net::HTTP.get(uri)
|
||||
|
|
Loading…
Reference in New Issue