Sha256: 47a8e02ceeace40aed72847dbf41402365a01cc0767d1a21c41fa133c2fda182
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
class PuppetPerimeter < Kindergarten::Perimeter purpose :puppets class Puppet end govern do can [:play_with,:dress,:nappy_change], Puppet cannot [:tear, :bbq], Puppet end def grab_puppet guard(:play_with, Puppet.new) end def play_puppet(puppet, action) guard(:action, puppet) end sandbox :grab_puppet, :play_puppet end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kindergarten-0.1.0 | spec/support/puppet_perimeter.rb |