Module: Scales

Defined in:
lib/scales/up.rb,
lib/scales-worker.rb,
lib/scales-worker/job.rb,
lib/scales-worker/base.rb,
lib/scales-worker/path.rb,
lib/scales-worker/cache.rb,
lib/scales-worker/pusher.rb,
lib/scales-worker/status.rb,
lib/scales-worker/worker.rb,
lib/scales-worker/version.rb,
lib/scales-worker/response.rb,
lib/scales-worker/cache/xml.rb,
lib/scales-worker/cache/html.rb,
lib/scales-worker/cache/json.rb,
lib/scales-worker/cache/push.rb,
lib/scales-worker/application.rb,
lib/scales-worker/cache/update.rb,
lib/scales-worker/cache/destroy.rb,
lib/scales-worker/application/rails.rb

Defined Under Namespace

Modules: Worker Classes: Up

Class Method Summary collapse

Class Method Details

.append(params) ⇒ Object



19
20
21
# File 'lib/scales-worker/base.rb', line 19

def append(params)
  Worker::Cache.class_for(params).append(params)
end

.destroy(*paths) ⇒ Object



39
40
41
# File 'lib/scales-worker/base.rb', line 39

def destroy(*paths)
  Worker::Cache::Destroy.destroy(*paths)
end

.get(path) ⇒ Object



47
48
49
# File 'lib/scales-worker/base.rb', line 47

def get(path)
  Storage::Sync::get_content(path)
end

.prepend(params) ⇒ Object



23
24
25
# File 'lib/scales-worker/base.rb', line 23

def prepend(params)
  Worker::Cache.class_for(params).prepend(params)
end

.push(params) ⇒ Object



15
16
17
# File 'lib/scales-worker/base.rb', line 15

def push(params)
  Worker::Cache::Push.push(params)
end

.remove(format, params) ⇒ Object



35
36
37
# File 'lib/scales-worker/base.rb', line 35

def remove(format, params)
  Worker::Cache.class_for(format).remove(params)
end

.replace(params) ⇒ Object



31
32
33
# File 'lib/scales-worker/base.rb', line 31

def replace(params)
  Worker::Cache.class_for(params).replace(params)
end

.set(params) ⇒ Object



27
28
29
# File 'lib/scales-worker/base.rb', line 27

def set(params)
  Worker::Cache.class_for(params).set(params)
end

.update(*paths, params) ⇒ Object



43
44
45
# File 'lib/scales-worker/base.rb', line 43

def update(*paths, params)
  Worker::Cache::Update.update(*paths, params)
end