Sha256: 8618a9a8e8ee600f11886bcb3b3755f92bfc3ef1328ac69faae54fd2325ce838

Contents?: true

Size: 298 Bytes

Versions: 20

Compression:

Stored size: 298 Bytes

Contents

# encoding: utf-8

module RHACK 
  class Client
    class_attribute :storage
    self.storage = {}
    attr_reader :storage
    
    def self.store(type, name, opts={})
      storage[name] = RHACK::Storage(type, (opts[:prefix] || self.name.sub('RHACK::', '').underscore)+':'+name)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rhack-1.4.0 lib/rhack/clients/storage.rb
rhack-1.3.8 lib/rhack/clients/storage.rb
rhack-1.3.6 lib/rhack/clients/storage.rb
rhack-1.3.5 lib/rhack/clients/storage.rb
rhack-1.3.4 lib/rhack/clients/storage.rb
rhack-1.3.3 lib/rhack/clients/storage.rb
rhack-1.3.1 lib/rhack/clients/storage.rb
rhack-1.3.0 lib/rhack/clients/storage.rb
rhack-1.2.10 lib/rhack/clients/storage.rb
rhack-1.2.9 lib/rhack/clients/storage.rb
rhack-1.2.8 lib/rhack/clients/storage.rb
rhack-1.2.7 lib/rhack/clients/storage.rb
rhack-1.2.1 lib/rhack/clients/storage.rb
rhack-1.2.0 lib/rhack/clients/storage.rb
rhack-1.1.8 lib/rhack/clients/storage.rb
rhack-1.1.7 lib/rhack/clients/storage.rb
rhack-1.1.6 lib/rhack/clients/storage.rb
rhack-1.1.5 lib/rhack/clients/storage.rb
rhack-1.1.4 lib/rhack/clients/storage.rb
rhack-1.1.0 lib/rhack/services/storage.rb