Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Proper formatting of code example in the Namespacing Tasks section.

  • Loading branch information...
commit 1a239ea62609229584567337e9e6519f315a9b58 1 parent 7b14d45
@dhl authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 index.markdown
View
16 index.markdown
@@ -120,17 +120,17 @@ It stands to reason that with such a wide scope of available uses, there would b
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
- namespace :web_server do
- task :backup do
- puts "In Example Backup Web-Server"
+ namespace :web_server do
+ task :backup do
+ puts "In Example Backup Web-Server"
+ end
end
- end
- namespace :database_server do
- task :backup do
- puts "In Example Backup Database-Server"
+ namespace :database_server do
+ task :backup do
+ puts "In Example Backup Database-Server"
+ end
end
- end
Whilst the tasks in the first example might be listed by `cap -T` as:
Please sign in to comment.
Something went wrong with that request. Please try again.