Class: Extension::Features::ArgoServe
- Inherits:
-
Object
- Object
- Extension::Features::ArgoServe
- Includes:
- SmartProperties
- Defined in:
- lib/project_types/extension/features/argo_serve.rb
Constant Summary collapse
- YARN_SERVE_COMMAND =
%w(server)
- NPM_SERVE_COMMAND =
%w(run-script server)
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/project_types/extension/features/argo_serve.rb', line 17 def call validate_env! CLI::UI::Frame.open(context.("serve.frame_title")) do next if start_server context.abort(context.("serve.serve_failure_message")) end end |
#resource_url ⇒ Object
26 27 28 |
# File 'lib/project_types/extension/features/argo_serve.rb', line 26 def resource_url super || ExtensionProject.current(force_reload: true).resource_url end |