Deployer\Type\Result::toBool PHP Method

toBool() public method

Check if output of command is equal "true" string and return true, otherwise false.
public toBool ( ) : boolean
return boolean
    public function toBool()
    {
        if ('true' === $this->toString()) {
            return true;
        } else {
            return false;
        }
    }