Method: Azure::Storage::Common::Core::Utility#locate_file
- Defined in:
- lib/azure/storage/common/core/utility.rb
#locate_file(name) ⇒ Object
69 70 71 72 73 74 75 76 77 |
# File 'lib/azure/storage/common/core/utility.rb', line 69 def locate_file(name) if File.exist? name name elsif File.exist?(File.join(ENV["HOME"], name)) File.join(ENV["HOME"], name) else Azure::Loggerx.error_with_exit "Unable to find #{name} file " end end |