Module: Profiler::MCP::SlaveSupport
- Defined in:
- lib/profiler/mcp/slave_support.rb
Class Method Summary collapse
Class Method Details
.resolve_storage(params) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/profiler/mcp/slave_support.rb', line 6 def self.resolve_storage(params) if (slave_name = params["slave"]) require_relative "../cluster/slave_proxy" Cluster::SlaveProxy.new(slave_name) else Profiler.storage end end |
.with_slave_proxy(params) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/profiler/mcp/slave_support.rb', line 15 def self.with_slave_proxy(params) return nil unless params["slave"] require_relative "../cluster/slave_proxy" Cluster::SlaveProxy.new(params["slave"]) end |