Class: ShopifyCLI::Tasks::EnsureGitDependency

Inherits:
ShopifyCLI::Task show all
Defined in:
lib/shopify_cli/tasks/ensure_git_dependency.rb

Instance Method Summary collapse

Instance Method Details

#call(ctx) ⇒ Object



6
7
8
9
10
11
# File 'lib/shopify_cli/tasks/ensure_git_dependency.rb', line 6

def call(ctx)
  return if ShopifyCLI::Environment.acceptance_test?
  unless ShopifyCLI::Git.exists?(ctx)
    raise ShopifyCLI::Abort, ctx.message("core.git.error.nonexistent")
  end
end