Sha256: 8092ef4ccf80957d67d207fc526832c928ac12f51934f4c5951241da71662fb1

Contents?: true

Size: 765 Bytes

Versions: 9

Compression:

Stored size: 765 Bytes

Contents

# frozen_string_literal: true
require "shopify_cli"

module Rails
  class Command
    class Deploy < ShopifyCli::SubCommand
      prerequisite_task ensure_project_type: :rails

      autoload :Heroku, Project.project_filepath("commands/deploy/heroku")

      HEROKU = "heroku"

      def call(args, _name)
        subcommand = args.shift
        case subcommand
        when HEROKU
          Rails::Command::Deploy::Heroku.start(@ctx)
        else
          @ctx.puts(self.class.help)
        end
      end

      def self.help
        ShopifyCli::Context.message("rails.deploy.help", ShopifyCli::TOOL_NAME)
      end

      def self.extended_help
        ShopifyCli::Context.message("rails.deploy.extended_help", ShopifyCli::TOOL_NAME)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shopify-cli-2.4.0 lib/project_types/rails/commands/deploy.rb
shopify-cli-2.3.0 lib/project_types/rails/commands/deploy.rb
shopify-cli-2.2.2 lib/project_types/rails/commands/deploy.rb
shopify-cli-2.2.1 lib/project_types/rails/commands/deploy.rb
shopify-cli-2.2.0 lib/project_types/rails/commands/deploy.rb
shopify-cli-2.1.0 lib/project_types/rails/commands/deploy.rb
shopify-cli-2.0.2 lib/project_types/rails/commands/deploy.rb
shopify-cli-2.0.1 lib/project_types/rails/commands/deploy.rb
shopify-cli-2.0.0 lib/project_types/rails/commands/deploy.rb