Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set command in task to use at another task #556

Closed
Senset opened this issue Aug 23, 2017 · 1 comment
Closed

Set command in task to use at another task #556

Senset opened this issue Aug 23, 2017 · 1 comment

Comments

@Senset
Copy link

Senset commented Aug 23, 2017

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
Copy link
Author

Senset commented Aug 23, 2017

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

@Senset Senset closed this as completed Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant