Add generator templates
This commit is contained in:
		
							parent
							
								
									bb55aebee1
								
							
						
					
					
						commit
						42af7206ec
					
				
					 3 changed files with 14 additions and 0 deletions
				
			
		|  | @ -0,0 +1,6 @@ | ||||||
|  | # frozen_string_literal: true | ||||||
|  | 
 | ||||||
|  | # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later | ||||||
|  | class <%= class_name %>Generator < Rails::Generators::NamedBase | ||||||
|  |   source_root File.expand_path('templates', __dir__) | ||||||
|  | end | ||||||
							
								
								
									
										8
									
								
								lib/templates/rails/generator/USAGE.tt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								lib/templates/rails/generator/USAGE.tt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | ||||||
|  | Description: | ||||||
|  |     Explain the generator | ||||||
|  | 
 | ||||||
|  | Example: | ||||||
|  |     bin/rails generate <%= file_name %> Thing | ||||||
|  | 
 | ||||||
|  |     This will create: | ||||||
|  |         what/will/it/create | ||||||
							
								
								
									
										0
									
								
								lib/templates/rails/generator/templates/.empty_directory
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								lib/templates/rails/generator/templates/.empty_directory
									
										
									
									
									
										Normal file
									
								
							
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Eric
						Eric