# File lib/nanite/cluster.rb, line 237 def setup_state case @state when String # backwards compatibility, we assume redis if the configuration option # was a string Nanite::Log.info("[setup] using redis for state storage") require 'nanite/state' @nanites = Nanite::State.new(@state) when Hash else require 'nanite/local_state' @nanites = Nanite::LocalState.new end end