Permalink
Browse files

Ticket #193 - Add usage example

  • Loading branch information...
1 parent bdb1c89 commit fab78b223539933c3776b7970568b962f75983ea @rgo committed May 31, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/capistrano/configuration/alias_task.rb
@@ -5,6 +5,11 @@ module AliasTask
# alias it. If arguments don't have correct task names, an ArgumentError
# wil be raised. If no such task exists, a Capistrano::NoSuchTaskError
# will be raised.
+ #
+ # Usage:
+ #
+ # alias_task :original_deploy, :deploy
+ #
def alias_task(new_name, old_name)
if !new_name.respond_to?(:to_sym) or !old_name.respond_to?(:to_sym)
raise ArgumentError, "expected a valid task name"

0 comments on commit fab78b2

Please sign in to comment.