mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.35k stars 491 forks source link

Set command in task to use at another task #556

Closed Senset closed 7 years ago

Senset commented 7 years ago

Hello! I try to make some like this:

_task :task1 do set :mycommand, "ls -la" end

task :taks2 do set :mycommand, "df -h" end

task :deploy do command %{#{fetch(:mycommand)}} end_

Startring: mina task1 deploy mina task2 deploy

How can I set command in task(1|2) to use it in deploy task?

Senset commented 7 years ago

Few minutes ago it wasn't works... hm... closing