From 4b99e5676d380bdef86b7a9a979a08370e91df72 Mon Sep 17 00:00:00 2001 From: Dan Clarke Date: Fri, 4 May 2018 15:44:31 +0100 Subject: [PATCH] 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. --- website/source/docs/triggers/index.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/triggers/index.html.md b/website/source/docs/triggers/index.html.md index a405e60ed..d111a7c39 100644 --- a/website/source/docs/triggers/index.html.md +++ b/website/source/docs/triggers/index.html.md @@ -71,7 +71,7 @@ config.vm.define "ubuntu" do |ubuntu| ubuntu.vm.box = "ubuntu" ubuntu.trigger.before :destroy do |trigger| 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 ```