-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Check versions of Ruby and gems | ||
puts "Ruby version: #{RUBY_VERSION}" | ||
puts "Installed gems:" | ||
puts `gem list` | ||
|
||
# Check environment variables | ||
puts "Environment variables:" | ||
puts ENV.to_h | ||
|
||
# Check existence and content of important files | ||
files_to_check = [ | ||
"/path/to/file1", | ||
"/path/to/file2", | ||
# add more file paths here | ||
] | ||
files_to_check.each do |file| | ||
if File.exist?(file) | ||
puts "Content of #{file}:" | ||
puts File.read(file) | ||
else | ||
puts "File #{file} does not exist" | ||
end | ||
end |