deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [5/5] git commit: Core: Fix for rake cimi:routes
Date Thu, 21 Feb 2013 13:51:01 GMT
Updated Branches:
  refs/heads/master d0353f795 -> 54a86113e


Core: Fix for rake cimi:routes

Since we now have initializers, we not longer need to load
config.ru to have all stuff initialized.


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

Branch: refs/heads/master
Commit: 54a86113e66e8842d61efd20e5e6587ab75487bb
Parents: cdf14f3
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Feb 21 14:37:22 2013 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Feb 21 14:37:22 2013 +0100

----------------------------------------------------------------------
 server/Rakefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/54a86113/server/Rakefile
----------------------------------------------------------------------
diff --git a/server/Rakefile b/server/Rakefile
index bcea9a2..da068b8 100644
--- a/server/Rakefile
+++ b/server/Rakefile
@@ -96,7 +96,8 @@ desc "List the routes defined by Rabbit"
     desc "Print all routes defined for #{frontend.to_s.capitalize}"
     task :routes do
       ENV['API_FRONTEND'] = frontend.to_s
-      load File.join(File.dirname(__FILE__), 'config.ru')
+      require_relative './lib/initialize'
+      Deltacloud.generate_routes
       f_class = (frontend == :cimi) ? CIMI : Deltacloud
       f_class.collections.each do |c|
         puts "\033[1;32;m#{c.name}\33[0m"


Mime
View raw message