Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplified tag formatting more

  • Loading branch information...
commit d9e36e5f0b9abb4b7f4da015a2dd88fe96d380bd 1 parent 4015dd8
@dimko authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.