lib/rrj/init.rb in ruby_rabbitmq_janus-3.0.0.pre.336 vs lib/rrj/init.rb in ruby_rabbitmq_janus-3.0.0.pre.351

- old
+ new

@@ -7,16 +7,17 @@ require 'bunny' require 'logger' require 'key_path' require 'erb' require 'rrj/tools/bin/config' -require 'rrj/tools/gem/log' +require 'rrj/tools/gem/logger' -# :reek:UtilityFunction - Log = RubyRabbitmqJanus::Tools::Logger.create unless defined?(Log) RubyRabbitmqJanus::Tools::Logger.start +# +# :reek:UtilityFunction +# :reek:MissingSafeMethod { exclude: [ cleanup_connection! ] } # Primary module for this gem module RubyRabbitmqJanus # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv> @@ -41,12 +42,10 @@ # @example Create a instance to this gem # @rrj = RubyRabbitmqJanus::RRJ.new # => #<RubyRabbitmqJanus::RRJ:0x007 @session=123> def initialize @option = Tools::Option.new - rescue => exception - raise Errors::RRJ::InstanciateGem, exception end # Create a transaction between Apps and Janus in queue public # # @params [Hash] options @@ -171,13 +170,11 @@ # Delete all resources to JanusInstance reference. # Warning: All data in database and Janus Instance is delete # # @since 2.1.0 - def cleanup_connection + def cleanup_connection! Models::JanusInstance.destroys - rescue - raise Errors::RRJ::CleanupConnection end private attr_reader :option