Sha256: 4525481c7ab393f3b48cb2e279e59989f20279feb7be0389abfc8842d4da7650

Contents?: true

Size: 506 Bytes

Versions: 121

Compression:

Stored size: 506 Bytes

Contents

# frozen_string_literal: true

namespace :rrj do
  namespace :delete do
    desc 'Delete all instances disable in database and janus'
    task unless_instance: :environment do
      tags = '[RubyRabbitmqJanus][rrj:delete:unless_instance] '
      timelaps = Time.now.utc

      Rails.logger.info "#{tags}Delete unless instance(s)"

      RubyRabbitmqJanus::Models::JanusInstance.find_by(enable: false).delete_all

      Rails.logger.info "#{tags}Executed in #{Time.now.utc - timelaps} ms"
    end
  end
end

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.2.pre.319 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.318 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.317 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.316 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.315 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.314 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.312 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.310 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.309 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.308 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.307 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.306 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.305 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.302 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.297 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.296 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.286 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.285 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.284 lib/tasks/delete_unless_instance.rake
ruby_rabbitmq_janus-2.7.1 lib/tasks/delete_unless_instance.rake