Module: Rsodx::Cli::Commands::ScaffoldCommon

Included in:
Scaffold
Defined in:
lib/rsodx/cli/commands/scaffold_common.rb

Constant Summary collapse

RUBY_VERSION =
"3.4.2".freeze
GITIGNORE =
".env\ntmp/\n".freeze
GEMFILE =

path: “../rsodx”

"source \"https://rubygems.org\"\n\ngem \"rsodx\"\ngem \"pg\"\n".freeze
BINRSODX =
"#!/usr/bin/env ruby\n  \nrequire \"fileutils\"\nrequire \"optparse\"\nrequire \"rsodx\"\n  \nRsodx::Cli.setup!\nRsodx::CLI.call\n".freeze
CONFIGRU =
"require_relative \"./app/app\"\nrun App\n".freeze
ENV_LOADER =
"require \"zeitwerk\"\nrequire \"rsodx\"\n\nRsodx::Environment.load_dotenv(ENV[\"RACK_ENV\"] || \"development\")\n  \nRsodx.configure do |config|\n  config.database_url = ENV[\"DATABASE_URL\"]\nend\nRsodx::Connect.connect\n\nRsodx::Environment.load_initializers(File.expand_path(\"../..\", __FILE__))\n\nRsodx.loader\n".freeze
ROUTE =
"class Router < Rsodx::Router\nend\n".freeze
APP =
"require \"rsodx\"\nrequire_relative \"../config/environment\"\nrequire_relative \"router\"\n  \nclass App < Rsodx::Base\n  use Router\nend\n".freeze
APP_SERVICE =
"class AppService < Rsodx::Service\nend\n".freeze
APP_CONTROLLER =
"class AppController < Rsodx::Controller\nend\n".freeze
APP_SERIALIZER =
"class AppSerializer < Rsodx::Serializer\nend\n".freeze
APP_PRESENTER =
"class AppPresenter < Rsodx::Presenter\nend\n".freeze
RAKEFILE =
"require_relative \"config/environment\"\nrequire \"rsodx/tasks\"\n".freeze
ENVFILE =
"DATABASE_URL=postgres://rsodx:paSs4321@localhost:5432/rsodx_development\n".freeze
KEEPABLE_FOLDERS =
%w[
  lib
  app/controllers
  app/workers
  app/services
  app/models
  app/presenters
  app/serializers
  config/initializers
  config/environments
  db/migrations
  spec
].freeze
FRAMEWORK_FOLDERS =
%w[
  bin
  config
].freeze