Class: AppRail::Airtable::Generator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/app_rail/airtable/generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/app_rail/airtable/generator.rb', line 27

def self.exit_on_failure?
  true
end

.source_rootObject



18
19
20
# File 'lib/app_rail/airtable/generator.rb', line 18

def self.source_root
  File.join(File.dirname(__FILE__), '..', '..', '..')
end

Instance Method Details

#create_projectObject



22
23
24
25
# File 'lib/app_rail/airtable/generator.rb', line 22

def create_project
  validate_airtable_schema
  directory('templates/project', output_directory)
end