Permalink
Browse files

done with big refactoring part I

  • Loading branch information...
1 parent 15a6390 commit ed6a14e156f75128419fa7e8b2cc3f568346fce9 @msuarz msuarz committed Aug 29, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −1 docs/confluence/settings.coffee
  2. +4 −2 src/readers/confluence.coffee
View
2 docs/confluence/settings.coffee
@@ -1,6 +1,6 @@
@settings =
docs:
- source: 'confluence'
+ reader: 'confluence'
host: 'confluence'
root: '69174693'
user: process.env.user
View
6 src/readers/confluence.coffee
@@ -1,7 +1,9 @@
rest = require 'restler'
{ Docs } = require './docs'
-class @Reader
+@read = -> new Confluence().read()
+
+class Confluence
read: ->
return unless @root?
@@ -11,7 +13,7 @@ class @Reader
if doc.is_suite
then @docs.add_suite doc.name
else @sync.read_doc doc
- @docs
+ @docs.docs
read_doc: (id, done) ->
uri = "#{@root_uri}/content/#{id}?expand=children"

0 comments on commit ed6a14e

Please sign in to comment.