Sha256: 0a8421b8a20ad906028b41259e0b592fa3980226363d30c2e7b0a3d88adac361

Contents?: true

Size: 761 Bytes

Versions: 21

Compression:

Stored size: 761 Bytes

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Application
      class BuildScript
        class << self
          def call(ctx:, task_runner:)
            CLI::UI::Frame.open(ctx.message("script.application.building")) do
              UI::StrictSpinner.spin(ctx.message("script.application.building_script")) do |spinner|
                task_runner.build
                spinner.update_title(ctx.message("script.application.built"))
              end
            rescue Infrastructure::Errors::BuildError => e
              CLI::UI::Frame.with_frame_color_override(:red) do
                ctx.puts("\n{{red:#{e.message}}}")
              end
              raise
            end
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
shopify-cli-2.25.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.24.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.23.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.22.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.21.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.20.1 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.20.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.19.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.18.1 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.18.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.17.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.16.1 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.16.0 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.15.6 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.15.5 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.15.4 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.15.3 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.15.2 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.15.1 lib/project_types/script/layers/application/build_script.rb
shopify-cli-2.15.0 lib/project_types/script/layers/application/build_script.rb