Sha256: 192df3da935f21a0733b6516416c3c00401592594c3e9272c641996ee6ca54ca

Contents?: true

Size: 879 Bytes

Versions: 1

Compression:

Stored size: 879 Bytes

Contents

# frozen_string_literals: true

require "generators/jobshop/app/app_generator"

module Jobshop
  module CLI
    class AppGenerator < Thor
      default_task :help

      desc "help", "Display long help"
      def help
        self.class.command_help(Thor::Base.shell.new, "new")
      end

      desc "new APP_PATH [options]", "Create Jobshop Application Host"
      long_desc <<~DESC
        Options:

        All the the normal options to `rails new` are applicable but the
        following options may not be changed:

        --database=postgresql
      DESC
      def new(*args)
        Jobshop::Generators::AppGenerator.start(
          args, jobshop_options: { database: "postgresql" }
        )
      end


      no_commands do
        def require_environment!
          require File.expand_path("spec/canary/config/environment")
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jobshop-0.0.167 lib/jobshop/cli/app_generator.rb