Class: Lab::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_openapi_docsObject



7
8
9
# File 'lib/generators/lab/install/install_generator.rb', line 7

def copy_openapi_docs
  copy_file('swagger.yaml', 'swagger/lab/v1/swagger.yaml')
end

#copy_rswag_initializerObject



11
12
13
# File 'lib/generators/lab/install/install_generator.rb', line 11

def copy_rswag_initializer
  copy_file('rswag-ui-lab.rb', 'config/initializers/rswag-ui-lab.rb')
end

#copy_workerObject



15
16
17
# File 'lib/generators/lab/install/install_generator.rb', line 15

def copy_worker
  copy_file('start_worker.rb', 'bin/lab/start_worker.rb')
end