gwen001/actarus

How to start task with host ip automatically after host __E_NAME__

Closed this issue · 3 comments

I saw this feature in demo VM but I can't repeat it in anywhere.
Host task doesn't have any callbacks in both cases, but nmap is called every time when new server was detected.
I can implement it in "create" method of actarus/src/ArusServerBundle/Controller/ServiceController.php class (like other "custom" logic), but I think it's not good way to solve problem.

Hum yes I didn't find a good way to implement complex callback so I put the code in the interpreter module:
actarus/src/AppBundle/Command/InterpretTaskCommand.php

Got it, thanks for answer!
to other users: you need to implement method named like your task in InterpretTaskCommand class
@gwen001 may be better way is create namespace and split on classes for task post processing? Oh, and can you follow me on twitter? I have few more questions about project architecture and contributing :)

Yes you're right it would be better to have a dedicated class for each task, that's in the top 100 of my todo list :)