providers/cluster.rb
# Match regex pattern from result of rabbitmqctl cluster_status
Match regex pattern from result of rabbitmqctl cluster_status
Match regex pattern from result of rabbitmqctl cluster_status
def match_pattern_cluster_status(cluster_status, pattern)
  if cluster_status.nil? || cluster_status.to_s.empty?
    raise('[rabbitmq_cluster] cluster_status should not be empty')
  end
  match = cluster_status.match(pattern)
  match && match[2]
end
def match_pattern_cluster_status ( cluster_status , pattern ) if cluster_status . nil? || cluster_status . to_s . empty? raise ( '[rabbitmq_cluster] cluster_status should not be empty' ) end match = cluster_status . match ( pattern ) match && match [ 2 ] end
Match regex pattern from result of rabbitmqctl cluster_status
Match regex pattern from result of rabbitmqctl cluster_status
cluster_status
<not_specific>
pattern
<not_specific>