Class: SewingKit::InstallGenerator::Project
- Inherits:
-
Object
- Object
- SewingKit::InstallGenerator::Project
- Defined in:
- lib/generators/sewing_kit/install_generator.rb
Class Method Summary collapse
Class Method Details
.app_name ⇒ Object
50 51 52 |
# File 'lib/generators/sewing_kit/install_generator.rb', line 50 def self.app_name Rails.application.class.module_parent.to_s.underscore end |
.uses_dev? ⇒ Boolean
54 55 56 |
# File 'lib/generators/sewing_kit/install_generator.rb', line 54 def self.uses_dev? File.exist?("dev.yml") end |
.uses_webpacker? ⇒ Boolean
58 59 60 |
# File 'lib/generators/sewing_kit/install_generator.rb', line 58 def self.uses_webpacker? File.exist?("config/webpacker.yml") end |