in clay/config.py [0:0]
def feature_flag(self, name):
'''
Returns a boolean value for the given feature, which may be
probabalistic.
'''
feature = self.get('features.%s' % name)
if not feature:
return False
if 'percent' in feature:
percent = float(feature['percent']) / 100.0
return (random.random() < percent)
return feature.get('enabled', False)