Syntax error for running remote script

I either got:
`syntax error, unexpected ':', expecting '}` or `wrong number of arguments (given 1, expected 0) (ArgumentError)` until I added the `=` in.
This commit is contained in:
Dan Clarke 2018-05-04 15:44:31 +01:00 committed by GitHub
parent 6152f2aa0e
commit 4b99e5676d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.box = "ubuntu" ubuntu.vm.box = "ubuntu"
ubuntu.trigger.before :destroy do |trigger| ubuntu.trigger.before :destroy do |trigger|
trigger.warn = "Dumping database to /vagrant/outfile" trigger.warn = "Dumping database to /vagrant/outfile"
trigger.run_remote {inline: "pg_dump dbname > /vagrant/outfile"} trigger.run_remote = {inline: "pg_dump dbname > /vagrant/outfile"}
end end
end end
``` ```