File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -201,15 +201,15 @@ def capabilities
201
201
# Converts environment variable APP_PATH to an absolute path.
202
202
# @return [String] APP_PATH as an absolute path
203
203
def absolute_app_path
204
- raise 'APP_PATH environment variable not set!' if @app_path . nil? || @app_path . empty?
205
- return @app_path if @app_path . match ( /^http/ ) # public URL for Sauce
206
- if @app_path . match ( /^\/ / ) # absolute file path
207
- raise "App doesn't exist. #{ @app_path } " unless File . exist? @app_path
208
- return @app_path
209
- end
210
- file = File . join ( File . dirname ( __FILE__ ) , @app_path )
211
- raise "App doesn't exist #{ file } " unless File . exist? file
212
- file
204
+ raise 'APP_PATH environment variable not set!' if @app_path . nil? || @app_path . empty?
205
+ return @app_path if @app_path . match ( /^http/ ) # public URL for Sauce
206
+ if @app_path . match ( /^\/ / ) # absolute file path
207
+ raise "App doesn't exist. #{ @app_path } " unless File . exist? @app_path
208
+ return @app_path
209
+ end
210
+ file = File . join ( File . dirname ( __FILE__ ) , @app_path )
211
+ raise "App doesn't exist #{ file } " unless File . exist? file
212
+ file
213
213
end
214
214
215
215
# Get the server url for sauce or local based on env vars.
You can’t perform that action at this time.
0 commit comments