Sha256: a190ff3bedebedfcbf5fd0f22ccf35fe694c9c84faff1525b3bf8adf29bca8c4
Contents?: true
Size: 1.3 KB
Versions: 8
Compression:
Stored size: 1.3 KB
Contents
module ShopifyCLI module Commands class App class Serve < ShopifyCLI::Command::AppSubCommand include ShopifyCLI::CommandOptions::CommandServeOptions prerequisite_task :ensure_env, :ensure_dev_store recommend_default_ruby_range options do |parser, flags| parser.on("--host=HOST") do |h| flags[:host] = h.gsub('"', "") end parser.on("--port=PORT") { |port| flags[:port] = port } end def call(*) case detect_app when :rails Services::App::Serve::RailsService.call( host: host, port: port, context: @ctx ) when :node Services::App::Serve::NodeService.call( host: host, port: port, context: @ctx ) when :php Services::App::Serve::PHPService.call( host: host, port: port, context: @ctx ) end end def self.help ShopifyCLI::Context.message("core.app.serve.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME) end def self.extended_help ShopifyCLI::Context.message("app.core.serve.extended_help") end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems