class Migratio::Worker::Migrator

Public Instance Methods

perform(*params) click to toggle source
# File lib/migratio/worker/migrator.rb, line 8
def perform(*params)
  begin
    perform_action(*params)
  rescue => e
    $stderr << "Something bad!\n"
    $stderr << "#{e}\n"
  end
end

Protected Instance Methods

config() click to toggle source
# File lib/migratio/worker/migrator.rb, line 27
def config
  @config ||= Migratio::Worker.config
end
config_file_path(name, type) click to toggle source
# File lib/migratio/worker/migrator.rb, line 23
def config_file_path(name, type)
  File.join(config.configs_path, full_name(name, type))
end
perform_action(*params) click to toggle source
# File lib/migratio/worker/migrator.rb, line 19
def perform_action(*params)
  #by default do nothing
end