Class: Extension::Features::Runtimes::Admin

Inherits:
Base
  • Object
show all
Defined in:
lib/project_types/extension/features/runtimes/admin.rb

Constant Summary collapse

ADMIN_UI_EXTENSIONS_RUN =
"@shopify/admin-ui-extensions-run"
PRODUCT_SUBSCRIPTION =
"PRODUCT_SUBSCRIPTION"
AVAILABLE_FLAGS =
[
  :api_key,
  :name,
  :port,
  :public_url,
  :renderer_version,
  :resource_url,
  :shop,
  :uuid,
]

Instance Method Summary collapse

Methods inherited from Base

#supports?

Instance Method Details

#active_runtime?(cli_package, identifier) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/project_types/extension/features/runtimes/admin.rb', line 23

def active_runtime?(cli_package, identifier)
  cli_package.name == ADMIN_UI_EXTENSIONS_RUN && identifier == PRODUCT_SUBSCRIPTION
end

#available_flagsObject



19
20
21
# File 'lib/project_types/extension/features/runtimes/admin.rb', line 19

def available_flags
  AVAILABLE_FLAGS
end