Skip to content

--ansi sending ansi coded commands to the target #4002

Answered by antonmedv
mrhackcz asked this question in Bugs
Discussion options

You must be logged in to vote

Ok, not I get the problem. If you use currentHost(), it will return Host class object. And Host object has this:

public function __toString(): string
{
return $this->getTag();
}

And getTag is depended on if you use it with --ansi.

What you really what to use is hostname instead of the tag:

run('{{bin/supervisorctl}} restart {{hostname}}:');

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mrhackcz
Comment options

Comment options

You must be logged in to vote
1 reply
@mrhackcz
Comment options

Answer selected by antonmedv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Bugs
Labels
None yet
2 participants