Module: OmfRc::ResourceProxyDSL

Overview

DSL contains some helper methods to ease the process defining resource proxies

DSL methods are defined under ClassMethods

Defined Under Namespace

Modules: ClassMethods

Constant Summary

PROXY_DIR =

Default directory contains proxy definition files

"omf_rc/resource_proxy"
UTIL_DIR =

Default directory contains utility definition files

"omf_rc/util"
DEFAULT_PROP_ACCESS =

Default property access rights through FRCP

[:configure, :request]

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

When this module included, methods defined under ClassMethods will be available in resource definition files



28
29
30
# File 'omf_rc/lib/omf_rc/resource_proxy_dsl.rb', line 28

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#call_hook(hook_name, context, *params) ⇒ Object

Calling a hook within a given resource context



22
23
24
# File 'omf_rc/lib/omf_rc/resource_proxy_dsl.rb', line 22

def call_hook(hook_name, context, *params)
  context.send(hook_name, *params) if context.respond_to? hook_name
end