Class: Dekorator::Generators::InstallGenerator Private
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Dekorator::Generators::InstallGenerator
- Defined in:
- lib/generators/dekorator/install/install_generator.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#create_application_decorator ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 20 21 22 23 24 |
# File 'lib/generators/dekorator/install/install_generator.rb', line 17 def create_application_decorator create_file application_decorator_path, <<-RUBY # frozen_string_literal: true class ApplicationDecorator < Dekorator::Base end RUBY end |
#create_root_directory ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 12 13 14 15 |
# File 'lib/generators/dekorator/install/install_generator.rb', line 9 def create_root_directory empty_directory(dekorator_root_directory) concerns_directory = dekorator_root_directory.join("concerns") empty_directory(concerns_directory) create_file("#{concerns_directory}/.keep") end |