Class: Services::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Services::Generators::InstallGenerator
- Defined in:
- lib/generators/services/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config ⇒ Object
11 12 13 14 15 16 |
# File 'lib/generators/services/install_generator.rb', line 11 def copy_config template( "service_objects_rails_config.rb", "#{Rails.root}/config/service_objects_rails.rb" ) end |
#setup_file_structure ⇒ Object
18 19 20 21 |
# File 'lib/generators/services/install_generator.rb', line 18 def setup_file_structure empty_directory("#{Rails.root}/app/namespaces/services") empty_directory("#{Rails.root}/spec/namespaces/services") end |