Class: Service::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/service/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_initializer_fileObject



8
9
10
# File 'lib/generators/service/install/install_generator.rb', line 8

def create_initializer_file
  template 'initializer.rb', config_file_path
end

#create_services_dirObject



12
13
14
# File 'lib/generators/service/install/install_generator.rb', line 12

def create_services_dir
  directory 'services', 'app/services'
end