1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Allow dots in application

This commit is contained in:
Marco van 't Wout 2015-12-17 15:37:35 +01:00
parent 2eba1cbd78
commit b0dc7990e1

View file

@ -1,8 +1,8 @@
validate :application do |_key, value|
changed_value = value.gsub(/[^A-Z0-9\-]/i, '_')
changed_value = value.gsub(/[^A-Z0-9\.\-]/i, '_')
if value != changed_value
warn %(The :application value "#{value}" is invalid!)
warn "Use only letters, numbers, hyphens, and underscores. For example:"
warn "Use only letters, numbers, hyphens, dots, and underscores. For example:"
warn " set :application, '#{changed_value}'"
raise Capistrano::ValidationError
end