Commit 634f7480 authored by 汪洋's avatar 汪洋

整理代码结构; 使用 require_all

parent b4087d17
#!/usr/bin/ruby
require 'dingbot'
DingBot.endpoint = 'https://oapi.dingtalk.com/robot/send'
TEST_BOT = "0e53adfed496676b49931ab73092ce6dc206ced89fb66852be0906b5e3dcfa75"
def ding_text(bot_id, msg)
......
#!/usr/bin/ruby
require File.dirname(__FILE__) + '/ding'
require File.dirname(__FILE__) + '/Confluence'
require_rel 'ding'
# 提前通知要过可行;当天也会提示
def ke_xing_notify()
......
#!/usr/bin/ruby
require File.dirname(__FILE__) + '/Confluence'
require File.dirname(__FILE__) + '/notify_release_date_by_email'
require File.dirname(__FILE__) + '/kexing_notify'
require "require_all"
require_rel 'confluence_request'
require_rel 'notify_release_date_by_email'
require_rel 'kexing_notify'
$DEBUG = false
DingBot.endpoint = 'https://oapi.dingtalk.com/robot/send'
login
notify_release_date_by_email
......
#!/usr/bin/ruby
# encoding: UTF-8
require 'mail'
require 'dingbot'
require File.dirname(__FILE__) + '/Confluence'
require File.dirname(__FILE__) + '/ding'
require_rel 'ding'
# 类似于“7.11开发”这样的事件名,用于对比记录邮件是否已经发送
$dev_title = ""
......
DingBot.endpoint = 'https://oapi.dingtalk.com/robot/send'
DingBot.access_token = '8142e051fe21d101b7e619c179741b0502f99b66ede221e164c2c1643122378d'
def dingBot
message = DingBot::Message::Text.new(
'邮件发送失败,有可能是存在无效收件人',
['15811315780'],
false
)
DingBot.send_msg(message)
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment