Skip to content
Browse files

simplified tag format fetching a bit

  • Loading branch information...
1 parent f1d32a0 commit 4015dd838c2e3ea224e4e646ea0e59351941ddea @dimko committed Oct 31, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/capistrano/tagging.rb
View
3 lib/capistrano/tagging.rb
@@ -12,8 +12,7 @@
namespace :tagging do
def tag(options = {})
- tag_format = exists?(:tag_format) && fetch(:tag_format)
- return (tag_format || ':rails_env_:release').gsub(/:([a-z_]+[^_:])/i) do |match|
+ return (fetch(:tag_format, false) || ':rails_env_:release').gsub(/:([a-z_]+[^_:])/i) do |match|
method = $1.to_sym
match = options[method] || (exists?(method) && fetch(method)) || (respond_to?(method) && send(method)) || ''
end

0 comments on commit 4015dd8

Please sign in to comment.
Something went wrong with that request. Please try again.