lib/rrj/tools/gem/config.rb in ruby_rabbitmq_janus-2.1.1 vs lib/rrj/tools/gem/config.rb in ruby_rabbitmq_janus-2.2.0.pre.42
- old
+ new
@@ -107,19 +107,12 @@
raise Errors::Tools::Config::PluginAt, index
end
# @return [Boolean] Read option file for a janus cluster section
def cluster
- @options['janus']['cluster']['enabled'].to_s.eql?('true') ? true : false
+ @options['gem']['cluster']['enabled'].to_s.match?('true') ? true : false
rescue
raise Errors::Tools::Config::Cluster
- end
-
- # Count number of Janus instances
- def number_of_instance
- @options['janus']['cluster']['count'].to_i || 1
- rescue
- raise Errors::Tools::Config::NumberOfInstance
end
private
def load_configuration