Module: LcpRuby::Sequences
- Defined in:
- lib/lcp_ruby/sequences/sequence_manager.rb
Defined Under Namespace
Classes: SequenceManager
Constant Summary collapse
- GLOBAL_SCOPE_KEY =
"_global"
Class Method Summary collapse
-
.build_scope_key(scope_hash) ⇒ Object
Build a scope key string from a key-value hash.
Class Method Details
.build_scope_key(scope_hash) ⇒ Object
Build a scope key string from a key-value hash. Used by both SequenceApplicator (at increment time) and SequenceManager (admin API).
7 8 9 10 11 |
# File 'lib/lcp_ruby/sequences/sequence_manager.rb', line 7 def self.build_scope_key(scope_hash) return GLOBAL_SCOPE_KEY if scope_hash.nil? || scope_hash.empty? scope_hash.map { |key, value| "#{key}:#{value}" }.join("/") end |