Module: ShopifyCLI::Tasks

Defined in:
lib/shopify_cli/tasks.rb,
lib/shopify_cli/tasks/ensure_env.rb,
lib/shopify_cli/tasks/confirm_store.rb,
lib/shopify_cli/tasks/ensure_dev_store.rb,
lib/shopify_cli/tasks/create_api_client.rb,
lib/shopify_cli/tasks/ensure_loopback_url.rb,
lib/shopify_cli/tasks/ensure_project_type.rb,
lib/shopify_cli/tasks/select_org_and_shop.rb,
lib/shopify_cli/tasks/ensure_authenticated.rb,
lib/shopify_cli/tasks/ensure_git_dependency.rb,
lib/shopify_cli/tasks/update_dashboard_urls.rb

Defined Under Namespace

Classes: ConfirmStore, CreateApiClient, EnsureAuthenticated, EnsureDevStore, EnsureEnv, EnsureGitDependency, EnsureLoopbackURL, EnsureProjectType, SelectOrgAndShop, TaskRegistry, UpdateDashboardURLS

Constant Summary collapse

Registry =
TaskRegistry.new

Class Method Summary collapse

Class Method Details

.register(task, name, path = nil) ⇒ Object



28
29
30
31
# File 'lib/shopify_cli/tasks.rb', line 28

def self.register(task, name, path = nil)
  autoload(task, path) if path
  Registry.add(-> () { const_get(task) }, name)
end