Method: DYAutomate::DYAutomateConfig.creatConfigFile
- Defined in:
- lib/DYAutomate/CustomConfig/DYAutomateConfig.rb
.creatConfigFile ⇒ Object
创建一个ConfigFile例子
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/DYAutomate/CustomConfig/DYAutomateConfig.rb', line 72 def self.creatConfigFile unless Dir.exist?(@@cachePath) Dir.mkdir(@@cachePath,0777) end File.new(@@configFilePath,'w+') f = File.open(@@configFilePath, "w+") demo = <<-EOF #DYAutomate 配置 DYAutomateConfig.new do |c| # 配置的git地址 c.detail_git = "" # 配置的git tag c.detail_git_tag = "" end EOF f.write(demo) end |