Sha256: 30a77669f24f7ead1169b0b5c9ab5d59ddc8f3676f895b86acd1ed65f696738b

Contents?: true

Size: 681 Bytes

Versions: 19

Compression:

Stored size: 681 Bytes

Contents

# frozen_string_literal: true
require "shopify_cli"

module Extension
  module Tasks
    module ExecuteCommands
      class Build < Base
        property! :context, accepts: ShopifyCLI::Context
        property! :config_file_path, accepts: String

        def call
          ShopifyCLI::Result
            .call(&method(:merge_server_config))
            .then { |server_config| Models::DevelopmentServer.new.build(server_config) }
        end

        private

        def merge_server_config
          Tasks::MergeServerConfig.call(
            context: context,
            file_path: config_file_path,
            type: type
          )
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
shopify-cli-2.15.6 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.15.5 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.15.4 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.15.3 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.15.2 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.15.1 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.15.0 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.14.0 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.13.0 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.12.0 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.11.2 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.11.1 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.11.0 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.10.2 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.10.1 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.10.0 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.9.0 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.8.0 lib/project_types/extension/tasks/execute_commands/build.rb
shopify-cli-2.7.4 lib/project_types/extension/tasks/execute_commands/build.rb