Sha256: 61170dcbd6f12a65686b1becf5a302369a6ffe3ce95fa151e2ebed2692d1d8e1
Contents?: true
Size: 972 Bytes
Versions: 26
Compression:
Stored size: 972 Bytes
Contents
# frozen_string_literal: true require "shopify_cli" module Extension module Tasks module ExecuteCommands class Serve < Base prepend OutdatedExtensionDetection property! :config_file_path, accepts: String property :port, accepts: Integer, default: ShopifyCLI::Constants::Extension::DEFAULT_PORT property :resource_url, accepts: String property! :tunnel_url, accepts: String def call ShopifyCLI::Result .call(&method(:merge_server_config)) .then { |server_config| Models::DevelopmentServer.new.serve(context, server_config) } end private def merge_server_config Tasks::MergeServerConfig.call( context: context, file_path: config_file_path, port: port, resource_url: resource_url, tunnel_url: tunnel_url, type: type ) end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems