ruby - Config information for a gem -
i working on gem needs configured hostname, username, , password. prefer store configuration information in config/directoryservices.yml
how make gem automatically create file when installed?
i've seen lot of places config information should passed hashes gems. main use of gem in app installed on ~15 servers. each server need different config information.
if better include yaml code in app , pass data hash gem, can that, still pointers on best way that.
an example of gem uses kind of config activeldap
if working on rails gem, can create install generator copy default config file , load it app.
Comments
Post a Comment