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-4.0.1 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.1.pre.1265973744 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.1.pre.1265506307 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.1.pre.1265140558 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.1001345090 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.1001181479 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.1001132533 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.1001107243 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.1001043172 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.949167646 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.946892338 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.946565704 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.939149205 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.939137013 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.939133437 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.939119110 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.939113634 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-4.0.0.pre.850041590 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-3.0.1 lib/tasks/delete_all_instance.rake