Class: UuAppstudio::Cmd::AppboxDeployController

Inherits:
UU::OS::CMD::CommandController
  • Object
show all
Defined in:
app/controllers/appbox/deploy.rb

Constant Summary

CONTROLLER_URL_PATH =
'Appbox/deploy'

Instance Method Summary collapse

Instance Method Details

#on_exec(ctx) ⇒ Object

Parameters:

  • ctx (UU::OS::CMD::CommandContext)


13
14
15
16
17
18
19
# File 'app/controllers/appbox/deploy.rb', line 13

def on_exec(ctx)
  UuAppstudio::Cmd::InputMethods.cmd(ctx) do
    app_card_uri = UuAppstudio::Cmd::Helpers.main_entity_uri(ctx)
    # validate parameters
    return UuAppstudio::Model::AppBox::Deploy.new(app_card_uri, ctx.parameters).deploy!
  end
end