Sorry in advance if this is basic question. I am not sure why the following does not work:
args = %w(-v -F d -f testdump.dump -U curiouslearn -h localhost -p 5432 -d myapp)
Process.run("pg_dump", args = args)
I get Error: expression has no effect
.
However, if I change it to the following, it works. Is it not possible to write args = args
?
argsval = %w(-v -F d -f testdump.dump -U curiouslearn -h localhost -p 5432 -d myapp)
Process.run("pg_dump", args = argsval)