Module: Eaco::DSL

Extended by:
DSL
Included in:
DSL
Defined in:
lib/eaco/dsl.rb,
lib/eaco/dsl/base.rb,
lib/eaco/dsl/actor.rb,
lib/eaco/dsl/resource.rb,
lib/eaco/dsl/actor/designators.rb,
lib/eaco/dsl/resource/permissions.rb

Overview

Eaco DSL entry point.

See Also:

Defined Under Namespace

Classes: Actor, Base, Resource

Instance Method Summary collapse

Instance Method Details

#actor(actor_class, options = {}, &block) ⇒ Object

Entry point for an Actor definition.

See Also:


43
44
45
# File 'lib/eaco/dsl.rb', line 43

def actor(actor_class, options = {}, &block)
  DSL::Actor.eval(actor_class, options, &block)
end

#authorize(resource_class, options = {}, &block) ⇒ Object

Entry point for the Resource authorization definition.

See Also:


29
30
31
32
# File 'lib/eaco/dsl.rb', line 29

def authorize(resource_class, options = {}, &block)
  DSL::Resource.eval(resource_class, options, &block)
  DSL::ACL.eval(resource_class, options)
end