Class: Kapellmeister::AddServiceGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/kapellmeister/add_service_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_base_fileObject



17
18
19
# File 'lib/generators/kapellmeister/add_service_generator.rb', line 17

def copy_base_file
  template 'lib/third_party.rb', "app/lib/#{file_name}.rb"
end

#copy_initializer_fileObject



13
14
15
# File 'lib/generators/kapellmeister/add_service_generator.rb', line 13

def copy_initializer_file
  template 'initializers/third_party_initializer.rb', "config/initializers/#{file_name}.rb"
end

#copy_lib_folderObject



21
22
23
24
25
26
# File 'lib/generators/kapellmeister/add_service_generator.rb', line 21

def copy_lib_folder
  copy_client_file
  copy_configuration_file
  copy_responder_file
  copy_routes_file
end