Class: Extension::Tasks::GetApps
- Inherits:
-
ShopifyCLI::Task
- Object
- ShopifyCLI::Task
- Extension::Tasks::GetApps
- Defined in:
- lib/project_types/extension/tasks/get_apps.rb
Instance Method Summary collapse
Instance Method Details
#call(context:) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/project_types/extension/tasks/get_apps.rb', line 7 def call(context:) org_id = ShopifyCLI::DB.get(:organization_id) return [] unless org_id organization = ShopifyCLI::PartnersAPI::Organizations.fetch_with_apps(context, id: org_id) apps_owned_by_organization(organization) end |