Skip to content
Browse files

simplified tag formatting more

  • Loading branch information...
1 parent 4015dd8 commit d9e36e5f0b9abb4b7f4da015a2dd88fe96d380bd @dimko committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/tagging.rb
View
4 lib/capistrano/tagging.rb
@@ -12,9 +12,9 @@
namespace :tagging do
def tag(options = {})
- return (fetch(:tag_format, false) || ':rails_env_:release').gsub(/:([a-z_]+[^_:])/i) do |match|
+ return fetch(:tag_format, ":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)) || ''
+ match = options[method] || fetch(method, false) || (send(method) rescue '')
end
end

0 comments on commit d9e36e5

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