Class: SewingKit::InstallGenerator::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/sewing_kit/install_generator.rb

Class Method Summary collapse

Class Method Details

.app_nameObject



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

Returns:

  • (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

Returns:

  • (Boolean)


58
59
60
# File 'lib/generators/sewing_kit/install_generator.rb', line 58

def self.uses_webpacker?
  File.exist?("config/webpacker.yml")
end