File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def authenticated?(token)
4343set :auth_token , nil
4444set :template_languages , %i[ html erb ]
4545
46- if File . exists ?( settings . history_file )
46+ if File . exist ?( settings . history_file )
4747 set :history , YAML . load_file ( settings . history_file )
4848else
4949 set :history , { }
@@ -171,7 +171,7 @@ def require_glob(relative_glob)
171171end
172172
173173settings_file = File . join ( settings . root , 'config/settings.rb' )
174- require settings_file if File . exists ?( settings_file )
174+ require settings_file if File . exist ?( settings_file )
175175
176176{ } . to_json # Forces your json codec to initialize (in the event that it is lazily loaded). Does this before job threads start.
177177job_path = ENV [ "JOB_PATH" ] || 'jobs'
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def temp
3333 yield path
3434ensure
3535 Dir . chdir WORKING_DIRECTORY
36- FileUtils . rm_rf ( path ) if File . exists ?( path )
36+ FileUtils . rm_rf ( path ) if File . exist ?( path )
3737end
3838
3939module Dashing
You can’t perform that action at this time.
0 commit comments