How to access file that requires credentials?


I’m coding some Ruby in a Windows environment.
I have some code that accesses some files using the FileUtils library.
Now that I’m shifting into production, my code will run in a location
from which I need to specify user/password credentials in order to
access those files. Anyone know how I can do that?