Class: UuAppstudio::Cmd::ApplicationCardCreateController
- Inherits:
-
UU::OS::CMD::AsyncCommandController
- Object
- UU::OS::CMD::AsyncCommandController
- UuAppstudio::Cmd::ApplicationCardCreateController
- Defined in:
- app/controllers/application_card/create.rb
Constant Summary
- CONTROLLER_URL_PATH =
'ApplicationCard/create'
Instance Method Summary collapse
Instance Method Details
#on_exec(ctx) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/application_card/create.rb', line 13 def on_exec(ctx) UuAppstudio::Cmd::InputMethods.cmd(ctx) do territory_uri = prepare_data(ctx) # validate parameters UuAppstudio::Model::ApplicationCard.create(territory_uri, {:dryRun => true}.merge(ctx.parameters)) # get queue_uri from configuration return ctx.invoke_async(UuAppstudio::Cmd::Helpers.) end end |
#on_exec_async(ctx) ⇒ Object
24 25 26 27 28 29 |
# File 'app/controllers/application_card/create.rb', line 24 def on_exec_async(ctx) UuAppstudio::Cmd::InputMethods.cmd(ctx) do territory_uri = prepare_data(ctx) return UuAppstudio::Model::ApplicationCard.create(territory_uri, ctx.parameters) end end |