Class: OpenShift::DataStore

Inherits:
Object
  • Object
show all
Defined in:
lib/openshift/data_store.rb

Direct Known Subclasses

MongoDataStore

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.instanceObject



9
10
11
# File 'lib/openshift/data_store.rb', line 9

def self.instance
  @oo_ds_provider.new
end

.provider=(provider_class) ⇒ Object



5
6
7
# File 'lib/openshift/data_store.rb', line 5

def self.provider=(provider_class)
  @oo_ds_provider = provider_class
end

Instance Method Details

#create(obj_type, user_id, id, obj) ⇒ Object



25
26
27
# File 'lib/openshift/data_store.rb', line 25

def create(obj_type, user_id, id, obj)
  Rails.logger.debug "DataStore.add(#{obj_type}, #{user_id}, #{id}, #{obj})\n\n"
end

#delete(obj_type, user_id, id) ⇒ Object



29
30
31
# File 'lib/openshift/data_store.rb', line 29

def delete(obj_type, user_id, id)
  Rails.logger.debug "DataStore.delete(#{obj_type}, #{user_id}, #{id})\n\n"
end

#find(obj_type, user_id, id) ⇒ Object



13
14
15
# File 'lib/openshift/data_store.rb', line 13

def find(obj_type, user_id, id)
  Rails.logger.debug "DataStore.find(#{obj_type}, #{user_id}, #{id})\n\n"
end

#find_all(obj_type, user_id = nil) ⇒ Object



17
18
19
# File 'lib/openshift/data_store.rb', line 17

def find_all(obj_type, user_id=nil)
  Rails.logger.debug "DataStore.find_all(#{obj_type}, #{user_id})\n\n"
end

#save(obj_type, user_id, id, obj) ⇒ Object



21
22
23
# File 'lib/openshift/data_store.rb', line 21

def save(obj_type, user_id, id, obj)
  Rails.logger.debug "DataStore.save(#{obj_type}, #{user_id}, #{id}, #{obj})\n\n"
end