Skip to content
This repository
Browse code

Merge pull request #7 from dhl/patch-1

Proper formatting of code example in the Namespacing Tasks section.
  • Loading branch information...
commit 79b875185e1d358745118e7087c70b05bbf7ce98 2 parents 7b14d45 + 1a239ea
Lee Hambley authored August 02, 2011

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. 16  index.markdown
16  index.markdown
Source Rendered
@@ -120,17 +120,17 @@ It stands to reason that with such a wide scope of available uses, there would b
120 120
 
121 121
 Defining a task in this way, and more about how the task blocks are arranged is forthcoming; however imagine we had two tasks `backup` perhaps, that needed to work differently on different roles.. here's how namepsaces solve that problem
122 122
 
123  
-  namespace :web_server do
124  
-    task :backup do
125  
-      puts "In Example Backup Web-Server"
  123
+    namespace :web_server do
  124
+      task :backup do
  125
+        puts "In Example Backup Web-Server"
  126
+      end
126 127
     end
127  
-  end
128 128
   
129  
-  namespace :database_server do
130  
-    task :backup do
131  
-      puts "In Example Backup Database-Server"
  129
+    namespace :database_server do
  130
+      task :backup do
  131
+        puts "In Example Backup Database-Server"
  132
+      end
132 133
     end
133  
-  end
134 134
 
135 135
 Whilst the tasks in the first example might be listed by `cap -T` as:
136 136
 

0 notes on commit 79b8751

Please sign in to comment.
Something went wrong with that request. Please try again.