Method: DYAutomate::DYAutomateConfig.checkConfigFile?
- Defined in:
- lib/DYAutomate/CustomConfig/DYAutomateConfig.rb
.checkConfigFile? ⇒ Boolean
检测config.rb是否存在
61 62 63 64 65 66 67 68 69 |
# File 'lib/DYAutomate/CustomConfig/DYAutomateConfig.rb', line 61 def self.checkConfigFile? path = File.join(@@configFilePath) unless File.exist?(path) creatConfigFile puts "*** At first ,you should edit the config file at path<#{@@configFilePath}>!!" `open #{@@configFilePath}` end end |