-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle multi-value args in PostgresAdmin.backup_pg_dump
There are a few args passable to `pg_dump` that can take multiple values. Since it is safer (in my eyes) to do `-t table1 -t table2` instead of trying our luck with `-t table1 table2`, this change makes it so the options passed to AwesomeSpawn do the former and not the latter. To accomplish this, this means we have to move the arguments outside of the `opts` hash, and into the `args` array. Also added a pretty decent amount of tests around this to make sure it works as expected.
- Loading branch information
1 parent
036e899
commit 156e1ec
Showing
2 changed files
with
104 additions
and
1 deletion.
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