abstract class Amber::CLI::Generator
- Amber::CLI::Generator
- Teeplate::FileTree
- Reference
- Object
Included Modules
Direct Known Subclasses
- Amber::CLI::Api
- Amber::CLI::ApiController
- Amber::CLI::Auth
- Amber::CLI::Controller
- Amber::CLI::ErrorTemplate
- Amber::CLI::Mailer
- Amber::CLI::Migration
- Amber::CLI::Model
- Amber::CLI::Scaffold
- Amber::CLI::ScaffoldController
- Amber::CLI::ScaffoldView
- Amber::CLI::WebSocket
- Amber::CLI::WebSocketChannel
Defined in:
amber_cli/generators/generator.crConstructors
Class Method Summary
Instance Method Summary
- #add_timestamp_fields
- #config : Amber::CLI::Config
- #config=(config : Amber::CLI::Config)
- #fields : Array(Field)
- #fields=(fields : Array(Field))
- #fields_hash : Hash(String, String)
- #fields_hash=(fields_hash : Hash(String, String))
-
#filter(entries)
Override to filter files rendered
- #name : String
- #name=(name : String)
- #post_render(directory, **args)
- #pre_render(directory, **args)
- #render(directory, **args)
- #table_name : String | Nil
- #table_name=(table_name : String | Nil)
- #timestamp : String
- #timestamp=(timestamp : String)
Macro Summary
Instance methods inherited from module Amber::CLI::Helpers
add_dependencies(dependencies)
add_dependencies,
add_plugs(pipeline, plug)
add_plugs,
add_routes(pipeline, route)
add_routes
Class methods inherited from module Amber::CLI::Helpers
run(command, wait = true, shell = true)
run
Instance methods inherited from module Amber::CLI::Helpers::Migration
create_index_for_reference_fields_sql
create_index_for_reference_fields_sql,
create_table_sql
create_table_sql,
drop_table_sql
drop_table_sql,
primary_key
primary_key
Instance methods inherited from class Teeplate::FileTree
class_name
class_name,
display_name
display_name,
display_name_plural
display_name_plural,
filter(entries)
filter,
name_plural
name_plural,
render(out_dir, force : Bool = false, interactive : Bool = false, interact : Bool = false, list : Bool = false, color : Bool = false, per_entry : Bool = false, quit : Bool = true)
render
Constructor Detail
Class Method Detail
Instance Method Detail
def filter(entries)
#
Description copied from class Teeplate::FileTree
Override to filter files rendered