lib/lhj/command/yapi.rb in lhj-tools-0.1.67 vs lib/lhj/command/yapi.rb in lhj-tools-0.1.69
- old
+ new
@@ -113,13 +113,13 @@
puts "\n\n生成文件成功!所在路径:\n#{File.expand_path(h_file)} \n#{File.expand_path(m_file)}".green
{ h_file: h_file, m_file: m_file, s_file: service_file }
end
def push_to_git
- Actions.sh('git checkout master', log: false)
- Actions.sh('git add .', log: false)
- Actions.sh("git commit -m 'generate yapi code'", log: false)
- Actions.sh('git push', log: false)
+ Actions.sh('git checkout master')
+ Actions.sh('git add .')
+ Actions.sh("git commit -m 'generate yapi code'")
+ Actions.sh('git push')
end
def notify_robot(template_vars)
robot_url = 'https://oapi.dingtalk.com/robot/send?access_token=fe879fd3e7a3b5e59d5719b2384845b7884901919be5a78fe443cbf777869807'
template = Lhj::ErbTemplateHelper.load('oc_code_notify')