Sha256: 40e4451c5706d1763d0baa378520a57ad3ece9038e7d9c4c24ee732d7c3b8b7a

Contents?: true

Size: 467 Bytes

Versions: 121

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true

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

      Rails.logger.info "#{tags}Delete all instances"

      RubyRabbitmqJanus::Models::JanusInstance.destroy_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-3.0.0 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.387 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.385 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.384 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.382 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.366 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.364 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.358 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.354 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.352 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.351 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.336 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.335 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.334 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.330 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.328 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.0.pre.327 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-2.7.2 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.322 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-2.7.2.pre.320 lib/tasks/delete_all_instance.rake