Sha256: 6fb21d0eabdbd175a5b4bacd4b49cdcfffdee676053a8ce01b1fb53bece27cae
Contents?: true
Size: 1.31 KB
Versions: 8
Compression:
Stored size: 1.31 KB
Contents
module ShopifyCLI module Commands class App class Create class Rails < ShopifyCLI::Command::AppSubCommand prerequisite_task :ensure_authenticated options do |parser, flags| parser.on("--name=NAME") { |t| flags[:name] = t } parser.on("--organization-id=ID") { |id| flags[:organization_id] = id } parser.on("--store-domain=MYSHOPIFYDOMAIN") { |url| flags[:store_domain] = url } parser.on("--type=APPTYPE") { |type| flags[:type] = type } parser.on("--db=DB") { |db| flags[:db] = db } parser.on("--rails-opts=RAILSOPTS") { |opts| flags[:rails_opts] = opts } end def call(*) Services::App::Create::RailsService.call( name: options.flags[:name], organization_id: options.flags[:organization_id], store_domain: options.flags[:store_domain], type: options.flags[:type], db: options.flags[:db], rails_opts: options.flags[:rails_opts], context: @ctx ) end class << self def help ShopifyCLI::Context.message("core.app.create.rails.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME) end end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems