Sha256: cbf51baa6e45fbab3636eca6fa734be1dc7008107976466d9d2e8c7198c0ca20
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
# frozen_string_literal: true module Script module Layers module Application class PushScript class << self def call(ctx:, force:) script_project = Infrastructure::ScriptProjectRepository.new(ctx: ctx).get task_runner = Infrastructure::TaskRunner.for(ctx, script_project.language, script_project.script_name) ProjectDependencies.install(ctx: ctx, task_runner: task_runner) BuildScript.call(ctx: ctx, task_runner: task_runner, script_project: script_project) UI::PrintingSpinner.spin(ctx, ctx.message("script.application.pushing")) do |p_ctx, spinner| package = Infrastructure::PushPackageRepository.new(ctx: p_ctx).get_push_package( script_project: script_project, compiled_type: task_runner.compiled_type, metadata: task_runner.metadata, ) package.push(Infrastructure::ScriptService.new(ctx: p_ctx), script_project.api_key, force) spinner.update_title(p_ctx.message("script.application.pushed")) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify-cli-1.9.0 | lib/project_types/script/layers/application/push_script.rb |