Sha256: 2097be00d9820db98c340b71bfc9994db0f97529570803bdc79a8a914f6f6b6e
Contents?: true
Size: 1000 Bytes
Versions: 4
Compression:
Stored size: 1000 Bytes
Contents
# frozen_string_literal: true # :reek:FeatureEnvy module RubyRabbitmqJanus module Tools # Subclass for Config # # Options about bunny # # @see RubyRabbitmqJanus::Tools::Config module ConfigRabbit # @return [String] read configuration fir queue admin def admin_pass @options['rabbit']['admin_pass'].to_s end # @return [Symbol] read configuration for bunny log level def log_level_rabbit @options['rabbit']['level'].upcase.to_sym || :INFO end # @return [Boolean] read configuration for bunny execution def tester? @options['rabbit']['test'].to_s.match?('true') ? true : false end # @return [Hash] Format hash for bunny settings def server_settings Hash[%w[host port pass user vhost log_level].map do |value| [ value.to_sym, @options['rabbit'][value.eql?('log_level') ? 'level' : value] ] end] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems