deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject git commit: Activate robots.txt for Deltacloud servers - DTACLOUD-440
Date Tue, 29 Jan 2013 16:36:52 GMT
Updated Branches:
  refs/heads/master 068f9b5a7 -> 897e05442


Activate robots.txt for Deltacloud servers - DTACLOUD-440

https://issues.apache.org/jira/browse/DTACLOUD-440


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

Branch: refs/heads/master
Commit: 897e054424c6304d2d455b6913bf47dc188e41cd
Parents: 068f9b5
Author: marios <marios@redhat.com>
Authored: Tue Jan 29 18:32:15 2013 +0200
Committer: marios <marios@redhat.com>
Committed: Tue Jan 29 18:32:36 2013 +0200

----------------------------------------------------------------------
 server/lib/deltacloud_rack.rb |    4 ++++
 server/public/robots.txt      |    7 ++-----
 2 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/897e0544/server/lib/deltacloud_rack.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud_rack.rb b/server/lib/deltacloud_rack.rb
index 8ddcb41..b8e605b 100644
--- a/server/lib/deltacloud_rack.rb
+++ b/server/lib/deltacloud_rack.rb
@@ -68,6 +68,10 @@ module Deltacloud
 
     set :views, File.join(File.dirname(__FILE__), '..', 'views')
 
+    get '/robots.txt' do
+      send_file File.join('public', 'robots.txt')
+    end
+
     get '/' do
       respond_to do |format|
         format.xml { haml :'index', :layout => false }

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/897e0544/server/public/robots.txt
----------------------------------------------------------------------
diff --git a/server/public/robots.txt b/server/public/robots.txt
index 085187f..c6742d8 100644
--- a/server/public/robots.txt
+++ b/server/public/robots.txt
@@ -1,5 +1,2 @@
-# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt
file
-#
-# To ban all spiders from the entire site uncomment the next two lines:
-# User-Agent: *
-# Disallow: /
+User-Agent: *
+Disallow: /


Mime
View raw message