Sha256: daecaa4d6cdc32b9007681caf0a907d30a24b2c3f188491fd46247204e3c7580
Contents?: true
Size: 411 Bytes
Versions: 8
Compression:
Stored size: 411 Bytes
Contents
module Sprinkle # stores the global list of policies as they are defined POLICIES = [] module Core # Defines a single policy. Currently the only option, which is also # required, is :roles, which defines which servers a policy is # used on. def policy(name, options = {}, &block) p = Sprinkle::Policy.new(name, options, &block) POLICIES << p p end end end
Version data entries
8 entries across 8 versions & 1 rubygems