Sha256: a84cb6339590db85732f851b7b396170d1eddbc1f763a9f3c9892d335820923c

Contents?: true

Size: 891 Bytes

Versions: 22

Compression:

Stored size: 891 Bytes

Contents

module Script
  module Layers
    module Application
      class ProjectDependencies
        def self.install(ctx:, task_runner:)
          CLI::UI::Frame.open(ctx.message("script.project_deps.checking")) do
            if task_runner.dependencies_installed?
              ctx.puts(ctx.message("script.project_deps.none_required"))
            else
              UI::StrictSpinner.spin(ctx.message("script.project_deps.installing")) do |spinner|
                task_runner.install_dependencies
                spinner.update_title(ctx.message("script.project_deps.installed"))
              end
            end
            true
          rescue Infrastructure::Errors::DependencyInstallError => e
            CLI::UI::Frame.with_frame_color_override(:red) do
              ctx.puts("\n#{e.message}")
            end
            raise e
          end
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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