You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would allow for variable substitution in commands, like so:
execute(:psql, '-d $DATABASE_URL')
Actually the "effect" is because of the ; I added before the command, but this requires to export the environment string to allow it's use in subsequent commands.
Convincing argument, and I'm always in favour of subshells for encapsulation, given how sub shells are a nice analog of what we're doing with ruby blocks in the DSL.
What's the downside, how much stuff will we risk breaking ?
Here:
sshkit/lib/sshkit/command.rb
Line 166 in 32c04ed
Exporting the environment;
Would allow for variable substitution in commands, like so:
Actually the "effect" is because of the
;
I added before the command, but this requires to export the environment string to allow it's use in subsequent commands.This would also allow more flexible prefixes.
For example:
to have ruby being executed this way:
Of course, this is already possible, but the command loses the access to the env var because they are not exported.
The text was updated successfully, but these errors were encountered: