Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Proper formatting of code example in the Namespacing Tasks section. #7

Merged
merged 1 commit into from

2 participants

@dhl

The code examples in the Namespacing Tasks section was missing two whitespaces in indentation, preventing it from being rendered as code example.

@leehambley leehambley merged commit 79b8751 into leehambley:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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:
Something went wrong with that request. Please try again.