Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Eliminate unused method parameters

  • Loading branch information...
commit 9a13e93472215114cd08ded0e601807ccccc1168 1 parent 224e938
@njonsson authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/cape/capistrano.rb
View
8 lib/cape/capistrano.rb
@@ -54,13 +54,13 @@ def define_rake_wrapper(task, named_arguments, &block)
options = named_arguments.reject do |key, value|
key == :binding
end
- describe( task, capistrano_context, options, &block)
+ describe task, capistrano_context
implement(task, capistrano_context, options, &block)
end
private
- def build_capistrano_description(task, options, &block)
+ def build_capistrano_description(task)
return nil unless task[:description]
description = [task[:description]]
@@ -85,8 +85,8 @@ def build_capistrano_description(task, options, &block)
description.join
end
- def describe(task, capistrano_context, options, &block)
- if (description = build_capistrano_description(task, options, &block))
+ def describe(task, capistrano_context)
+ if (description = build_capistrano_description(task))
capistrano_context.desc description
end
self
Please sign in to comment.
Something went wrong with that request. Please try again.