adhd 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +62 -2
- data/VERSION +1 -1
- data/adhd.gemspec +10 -8
- data/bin/adhd +23 -8
- data/bin/adhd_cleanup +57 -0
- data/lib/adhd/adhd_rest_server.rb +229 -0
- data/lib/adhd/config.yml +1 -1
- data/lib/adhd/models/content_doc.rb +17 -0
- data/lib/adhd/models/content_shard.rb +97 -0
- data/lib/adhd/models/node_doc.rb +139 -0
- data/lib/adhd/models/shard_range.rb +202 -0
- data/lib/adhd/node_manager.rb +260 -0
- data/lib/adhd/reactor.rb +194 -12
- data/test/test_adhd.rb +0 -11
- metadata +11 -7
- data/lib/adhd.rb +0 -120
- data/lib/adhd/models.rb +0 -388
- data/lib/adhd/node.rb +0 -13
- data/models.rb +0 -19
data/lib/adhd/node.rb
DELETED
data/models.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
class Node < CouchRest::ExtendedDocument
|
2
|
-
NODESERVER = CouchRest.new("#{ARGV[1]}")
|
3
|
-
NODESERVER.default_database = "#{ARGV[0]}_node_db"
|
4
|
-
|
5
|
-
use_database NODESERVER.default_database
|
6
|
-
|
7
|
-
property :name
|
8
|
-
property :url
|
9
|
-
property :is_store
|
10
|
-
property :is_management
|
11
|
-
property :is_directory
|
12
|
-
property :status
|
13
|
-
|
14
|
-
timestamps!
|
15
|
-
|
16
|
-
view_by :name
|
17
|
-
view_by :is_management
|
18
|
-
end
|
19
|
-
|