@@ -91,21 +91,21 @@ class Main
9191 appleDestExampleYML = "#{ basePath } /#{ defaultConfigDirName } /#{ defaultAppleConfigFileName } "
9292 androidDestExampleYML = "#{ basePath } /#{ defaultConfigDirName } /#{ defaultAndroidConfigFileName } "
9393
94- if !File . exists ?( "#{ basePath } /latestCheckTimestamp/.keep" )
94+ if !File . exist ?( "#{ basePath } /latestCheckTimestamp/.keep" )
9595 File . open ( "#{ basePath } /latestCheckTimestamp/.keep" , 'w' ) { |file | file . write ( "" ) }
9696 end
9797 #
98- if File . exists ?( appleSourceExampleYML )
99- if File . exists ?( appleDestExampleYML )
98+ if File . exist ?( appleSourceExampleYML )
99+ if File . exist ?( appleDestExampleYML )
100100 puts "Failed! Config YML File Exists: #{ appleDestExampleYML } "
101101 else
102102 FileUtils . cp ( appleSourceExampleYML , appleDestExampleYML )
103103 puts "Init Apple Config YML File at:#{ appleDestExampleYML } Success!"
104104 end
105105 end
106106 #
107- if File . exists ?( androidSourceExampleYML )
108- if File . exists ?( androidDestExampleYML )
107+ if File . exist ?( androidSourceExampleYML )
108+ if File . exist ?( androidDestExampleYML )
109109 puts "Failed! Config YML File Exists: #{ androidDestExampleYML } "
110110 else
111111 FileUtils . cp ( androidSourceExampleYML , androidDestExampleYML )
@@ -129,7 +129,7 @@ class Main
129129 opts . on ( '-d' , '--delete' , 'delete latest check timestamp log file.(factory reset)' ) do
130130 FileUtils . rm_rf ( "#{ basePath } /latestCheckTimestamp/" )
131131 Helper . createDirIfNotExist ( "#{ basePath } /latestCheckTimestamp/" )
132- if !File . exists ?( "#{ basePath } /latestCheckTimestamp/.keep" )
132+ if !File . exist ?( "#{ basePath } /latestCheckTimestamp/.keep" )
133133 File . open ( "#{ basePath } /latestCheckTimestamp/.keep" , 'w' ) { |file | file . write ( "" ) }
134134 end
135135
@@ -160,7 +160,7 @@ class Main
160160
161161 private
162162 def configFileCheck ( path , command )
163- if !File . exists ? path
163+ if !File . exist ? path
164164 puts "Make sure you have vaild config file at #{ path } "
165165 puts "Or use ZReviewTender #{ command } specify config.yml file path"
166166 raise "Config file not found: #{ path } "
0 commit comments