Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clearer formatting and wrap at 72.

  • Loading branch information...
commit 883b94a855f78b707fdbacbc06098ce14c1e4420 1 parent 65386a3
@richardkmichael richardkmichael authored
Showing with 12 additions and 10 deletions.
  1. +12 −10 lib/capistrano/templates/stage.rb.erb
View
22 lib/capistrano/templates/stage.rb.erb
@@ -1,25 +1,27 @@
# Simple Role Syntax
# ==================
-# Supports bulk-adding hosts to roles, the primary
-# server in each group is considered to be the first
-# unless any hosts have the primary property set.
-# Don't declare `role :all`, it's a meta role
+# Supports bulk-adding hosts to roles, the primary server in each group
+# is considered to be the first unless any hosts have the primary
+# property set. Don't declare `role :all`, it's a meta role.
+
role :app, %w{deploy@example.com}
role :web, %w{deploy@example.com}
role :db, %w{deploy@example.com}
+
# Extended Server Syntax
# ======================
-# This can be used to drop a more detailed server
-# definition into the server list. The second argument
-# something that quacks like a hash can be used to set
-# extended properties on the server.
+# This can be used to drop a more detailed server definition into the
+# server list. The second argument something that quacks like a hash can
+# be used to set extended properties on the server.
+
server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value
+
# Custom SSH Options
# ==================
-# You may pass any option but keep in mind that net/ssh understands a limited set of options,
-# consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start).
+# You may pass any option but keep in mind that net/ssh understands a
+# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start).
#
# Global options
# --------------
Please sign in to comment.
Something went wrong with that request. Please try again.