deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: Added :documentation_class setting to help Rabbit generate docs.
Date Fri, 21 Sep 2012 10:24:16 GMT
Updated Branches:
  refs/heads/master ec31c7c37 -> 05a76a2ff


Added :documentation_class setting to help Rabbit generate docs.

>From sinatra-rabbit >=1.1.0 we are now generating online
documentation again. The only required change is to provide
'documentation_class' setting in base.rb, so Rabbit will know
what module it should query about collections.

The documentation is then generated on:

/api/docs
/cimi/docs


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/05a76a2f
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/05a76a2f
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/05a76a2f

Branch: refs/heads/master
Commit: 05a76a2ff901e1dc24bf638b510276f223d2b774
Parents: ec31c7c
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Fri Sep 14 12:20:21 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Sep 21 12:24:40 2012 +0200

----------------------------------------------------------------------
 server/deltacloud-core.gemspec            |    2 +-
 server/lib/cimi/collections/base.rb       |    1 +
 server/lib/deltacloud/collections/base.rb |    2 ++
 3 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/05a76a2f/server/deltacloud-core.gemspec
----------------------------------------------------------------------
diff --git a/server/deltacloud-core.gemspec b/server/deltacloud-core.gemspec
index 9d761e6..4970518 100644
--- a/server/deltacloud-core.gemspec
+++ b/server/deltacloud-core.gemspec
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
   s.add_dependency('rake', '>= 0.8.7')
   s.add_dependency('haml', '>= 2.2.17')
   s.add_dependency('sinatra', '>= 1.3.0')
-  s.add_dependency('sinatra-rabbit', '>= 1.0.10')
+  s.add_dependency('sinatra-rabbit', '>= 1.0.11')
   s.add_dependency('crack')
   s.add_dependency('rack', '>= 1.0.0')
   s.add_dependency('rack-accept')

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/05a76a2f/server/lib/cimi/collections/base.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/collections/base.rb b/server/lib/cimi/collections/base.rb
index 00620fb..ed61d17 100644
--- a/server/lib/cimi/collections/base.rb
+++ b/server/lib/cimi/collections/base.rb
@@ -42,6 +42,7 @@ module CIMI::Collections
     set :root, File.join(File.dirname(__FILE__), '..', '..', '..')
     set :views, root + '/views/cimi'
     set :public_folder, root + '/public'
+    set :documentation_class, CIMI
 
     error do
       report_error

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/05a76a2f/server/lib/deltacloud/collections/base.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/collections/base.rb b/server/lib/deltacloud/collections/base.rb
index 1cbeb70..d5182ca 100644
--- a/server/lib/deltacloud/collections/base.rb
+++ b/server/lib/deltacloud/collections/base.rb
@@ -38,6 +38,8 @@ module Deltacloud::Collections
     set :root, File.join(File.dirname(__FILE__), '..', '..', '..')
     set :views, File.join(settings.root, 'views')
     set :public_folder, root + '/public'
+    # A class where the Rabbit will look up for 'collections'
+    set :documentation_class, Deltacloud
 
     error do
       report_error


Mime
View raw message