Class: Arfi::Commands::Init

Inherits:
Thor
  • Object
show all
Defined in:
lib/arfi/commands/init.rb

Overview

Initializes ARFI directory structure inside a Rails project.

Creates/ensures:

  • db/functions/public

  • db/functions/<adapter>/public (when adapter provided)

Constant Summary collapse

ADAPTERS =
%i[postgresql mysql].freeze
ROOT_DIR =
'db/functions'
DEFAULT_SCHEMA =
'public'

Instance Method Summary collapse

Instance Method Details

#createvoid

This method returns an undefined value.

Run the full init flow: validate schema, create base dirs, and optionally create adapter dirs.



34
35
36
37
38
# File 'lib/arfi/commands/init.rb', line 34

def create
  validate_schema_format!
  create_base_dirs
  create_adapter_dirs if options[:adapter] # steep:ignore NoMethod
end