Class: Camunda::Generators::InstallGenerator

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

Overview

Creates ‘app/jobs/camunda_job.rb`. A class which inherits from ApplicationJob and includes `ExternalTaskJob`. It can be changed to include Sidekiq::Worker instead. All of the BPMN worker classes will inherit from this class

Instance Method Summary collapse

Instance Method Details

#copy_camunda_application_jobObject

Copies the camunda_job file to the Rails application.



10
11
12
# File 'lib/generators/camunda/install/install_generator.rb', line 10

def copy_camunda_application_job
  copy_file 'camunda_job.rb', 'app/jobs/camunda_job.rb'
end