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:
parent
2eba1cbd78
commit
b0dc7990e1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue