Class: Extension::Features::ArgoServe

Inherits:
Object
  • Object
show all
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

#callObject



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.message("serve.frame_title")) do
    next if start_server
    context.abort(context.message("serve.serve_failure_message"))
  end
end

#resource_urlObject



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