File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 14
14
api_secret = gets . chomp
15
15
end
16
16
17
- File . open ( File . expand_path ( "~/ .testingbot") , 'w' ) { |f | f . write ( "#{ api_key } :#{ api_secret } " ) }
17
+ File . open ( File . join ( Dir . home , " .testingbot") , 'w' ) { |f | f . write ( "#{ api_key } :#{ api_secret } " ) }
18
18
19
19
p "Your system is now ready to use TestingBot's grid infrastructure."
Original file line number Diff line number Diff line change @@ -185,20 +185,7 @@ def delete_uploaded_file(app_url)
185
185
private
186
186
187
187
def load_config_file
188
- is_windows = false
189
-
190
- begin
191
- require 'rbconfig'
192
- is_windows = ( RbConfig ::CONFIG [ 'host_os' ] =~ /mswin|mingw|cygwin/ )
193
- rescue
194
- is_windows = ( RUBY_PLATFORM =~ /w.*32/ ) || ( ENV [ "OS" ] && ENV [ "OS" ] == "Windows_NT" )
195
- end
196
-
197
- if is_windows
198
- config_file = "#{ ENV [ 'HOMEDRIVE' ] } \\ .testingbot"
199
- else
200
- config_file = File . expand_path ( "#{ Dir . home } /.testingbot" )
201
- end
188
+ config_file = File . join ( Dir . home , ".testingbot" )
202
189
203
190
if File . exist? ( config_file )
204
191
str = File . open ( config_file ) { |f | f . readline } . chomp
You can’t perform that action at this time.
0 commit comments