>>> It’s a cigar lighter. The implication is that it is flaky and doesn’t always light. So if it does light on the first try you get a wish by the terms of the little kid culture of young George Bailey’s circle of friends.
When he says “Hot Dog!” it means the same thing as saying “Yes!!!” would mean now — the lighter lit so he gets a wish granted.