silverstripe / sspak

Tool for managing bundles of db/assets from Silverstripe environments
http://silverstripe.github.io/sspak/
BSD 3-Clause "New" or "Revised" License
47 stars 34 forks source link

SSPAK unable to determine Database name when using SS_DATABASE_CHOOSE_NAME #50

Open brettt89 opened 7 years ago

brettt89 commented 7 years ago

When using SS_DATABASE_CHOOSE_NAME to specify database name based on folder structure. If you provide . as the last argument in sspak load it does not correctly get the folder structure name.

E.g. sspak load {sspak} .

Create database name SS_ instead of SS_{folder-name}

brettt89 commented 7 years ago

https://github.com/silverstripe/sspak/blob/33dbe9b9cd951a5295bc1e172a8eee38b6fa534c/src/sspak-sniffer.php#L15