Module: UU::OS::Macro
- Extended by:
- Macro
- Included in:
- Macro
- Defined in:
- uu_os-0.29.16/lib/uu/os/macro.rb,
uu_os-0.29.16/lib/uu/os/macro/macro_exec.rb,
uu_os-0.29.16/lib/uu/os/macro/macro_exec_options.rb
Overview
Macro is representation of executable code in Unicorn Universe.
Defined Under Namespace
Classes: MacroExec, MacroExecOptions
Constant Summary
- PATH =
Service path
'uu/os/Macro'
Instance Method Summary (collapse)
-
- (UU::OS::REST::Future) exec(main_entity_uri, parameters)
Executes macro based on main entity UESURI.
Instance Method Details
- (UU::OS::REST::Future) exec(main_entity_uri, parameters)
Executes macro based on main entity UESURI.
23 24 25 26 27 28 29 30 31 |
# File 'uu_os-0.29.16/lib/uu/os/macro.rb', line 23 def exec(main_entity_uri, parameters) svc = UU::OS::REST::RemoteClient.new(Macro) # Request is send as form data (server has problems with deserialization of DTO with object attributes) payload = UU::OS::Macro::MacroExec.new(parameters).to_hash UU::OS::QoS::QoSHandler.auto_retry do res = svc.post('exec', main_entity_uri, payload) return UU::OS::REST::Future.new(res) end end |