Uhh nice, never saw that!
so Array(config["env"]).join(" ") should do it :)


On Sun, Sep 8, 2013 at 7:25 PM, Jay OConnor <notifications@github.com>wrote:

> In lib/wwtd.rb:
>
> > @@ -132,6 +132,9 @@ def run_config(config, lock)
> >        end
> >        wants_bundle = gemfile || File.exist?(DEFAULT_GEMFILE)
> >
> > +      # ensure that the config is a string so that ShellWords can parse it
> > +      config["env"] = config["env"].to_s
>
> the following is also valid
>
> env:
>   global:
>     - DATABASE_USER=root
>     - DATABASE_PASSWORD=''
>     - DATABASE_HOST=localhost
>
> and creates a config["env"] that looks like the following
>
> {"global"=>["DATABASE_USER=root", "DATABASE_PASSWORD=''", "DATABASE_HOST=localhost"]}
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/grosser/wwtd/pull/2/files#r6229789>
> .
>