Sha256: 8f50c6a593b2c1ad912a4d84599f85886ec16c341db3c5b3c6c6a5b0a3fbd9de
Contents?: true
Size: 939 Bytes
Versions: 1
Compression:
Stored size: 939 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/flow_node_patron' puts '初始化....' puts '使用了以下配置' puts '*' * 40 FlowNodePatron::Config.constants.each do |constant| puts "#{constant} = #{FlowNodePatron::Config.const_get(constant)}" end puts '*' * 40 puts '这些配置都可以通过环境变量指定替换掉' if File.file?('/tmp/clean_success.txt') puts '检测到存在/tmp/clean_success.txt,清理脚本没有正确退出?输入 y 删除该脚本且继续执行,否则退出' inputs = gets if inputs.casecmp('y').zero? File.delete('/tmp/clean_success.txt') puts '退出。。。。。' exit end end # 指定日志 FlowNodePatron.logger.level = Logger.const_get(FlowNodePatron::Config::PATRON_LOG_LEVEL) RestClient.log = FlowNodePatron.logger if FlowNodePatron::Config::PATRON_LOG_LEVEL == 'DEBUG' FlowNodePatron::Server.new.init do FlowNodePatron::FlowPromisedLandService.checkin end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flow_org_patron-0.1.1 | exe/flow_patron |