Yes, I have seen this style of writing case statements in many places in Chef code and in blogs :)