Class: UuAppstudio::Cmd::CastModifyController
- Inherits:
-
UU::OS::CMD::AsyncCommandController
- Object
- UU::OS::CMD::AsyncCommandController
- UuAppstudio::Cmd::CastModifyController
- Defined in:
- app/controllers/cast/modify.rb
Constant Summary
- CONTROLLER_URL_PATH =
'Cast/modify'
Instance Method Summary collapse
Instance Method Details
#on_exec(ctx) ⇒ Object
10 11 12 13 14 |
# File 'app/controllers/cast/modify.rb', line 10 def on_exec(ctx) UuAppstudio::Cmd::InputMethods.cmd(ctx) do return ctx.invoke_async(UuAppstudio::Cmd::Helpers.) end end |
#on_exec_async(ctx) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/controllers/cast/modify.rb', line 16 def on_exec_async(ctx) UuAppstudio::Cmd::InputMethods.cmd(ctx) do cast = UuAppstudio::Model::Helpers::Cast.new( ctx.uu_uri, ctx.parameters[:subject_uri], ctx.parameters[:portal_name], ctx.parameters[:from_portal] ) cast.create(ctx.parameters[:cast_list_add]) cast.delete(ctx.parameters[:cast_list_delete]) end end |