Module: BatchManager

Defined in:
lib/batch_manager.rb,
lib/batch_manager/utils.rb,
lib/batch_manager/daemon.rb,
lib/batch_manager/engine.rb,
lib/batch_manager/logger.rb,
lib/batch_manager/monitor.rb,
lib/batch_manager/version.rb,
lib/batch_manager/executor.rb,
lib/batch_manager/batch_status.rb,
lib/batch_manager/schema_batch.rb,
app/workers/batch_manager/exec_batch_worker.rb,
app/controllers/batch_manager/batches_controller.rb,
app/controllers/batch_manager/application_controller.rb,
lib/generators/batch_manager/migration/migration_generator.rb

Defined Under Namespace

Modules: Utils Classes: ApplicationController, BatchStatus, BatchesController, Daemon, Engine, ExecBatchWorker, Executor, Logger, MigrationGenerator, Monitor, SchemaBatch

Constant Summary collapse

VERSION =
"0.4.1"

Class Method Summary collapse

Class Method Details

.batch_dirObject



10
11
12
# File 'lib/batch_manager.rb', line 10

def batch_dir
  Rails.application.config.batch_manager.batch_dir
end

.log_dirObject



14
15
16
17
18
# File 'lib/batch_manager.rb', line 14

def log_dir
  path = Rails.application.config.batch_manager.log_dir
  path = File.join(Rails.root, path) unless path.start_with?("/")
  path
end

.loggerObject



28
29
30
# File 'lib/batch_manager.rb', line 28

def logger
  @@logger ||= ::Logger.new(STDOUT)
end

.save_log?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/batch_manager.rb', line 20

def save_log?
  Rails.application.config.batch_manager.save_log
end

.signalObject



24
25
26
# File 'lib/batch_manager.rb', line 24

def signal
  "=Batch Manager="
end