Sha256: 090d101183e4d899d4876c7833845cb71f1ac64478e23166052470a545d36d86
Contents?: true
Size: 612 Bytes
Versions: 47
Compression:
Stored size: 612 Bytes
Contents
require "shopify_cli" module ShopifyCLI module Tasks class EnsureAuthenticated < ShopifyCLI::Task def call(ctx) return if ShopifyCLI::Environment.acceptance_test? unless ShopifyCLI::IdentityAuth.authenticated? raise ShopifyCLI::Abort, ctx.message("core.identity_auth.login_prompt", ShopifyCLI::TOOL_NAME) end if ShopifyCLI::IdentityAuth.environment_auth_token? ctx.puts(ctx.message("core.identity_auth.token_authentication", ShopifyCLI::Constants::EnvironmentVariables::AUTH_TOKEN)) end end end end end
Version data entries
47 entries across 47 versions & 1 rubygems