Class: GOM::Storage::CouchDB::View::Pusher

Inherits:
Object
  • Object
show all
Defined in:
lib/gom/storage/couchdb/view/pusher.rb

Overview

A helper to push design documents to the CouchDB server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database, view_hash) ⇒ Pusher

Returns a new instance of Pusher.



7
8
9
# File 'lib/gom/storage/couchdb/view/pusher.rb', line 7

def initialize(database, view_hash)
  @database, @view_hash = database, view_hash
end

Instance Attribute Details

#designObject (readonly)

Returns the value of attribute design.



5
6
7
# File 'lib/gom/storage/couchdb/view/pusher.rb', line 5

def design
  @design
end

Instance Method Details

#performObject



11
12
13
14
15
# File 'lib/gom/storage/couchdb/view/pusher.rb', line 11

def perform
  initialize_design
  add_views
  push_design
end