Module: Crowbar::Client::Mixin::Database
- Extended by:
- ActiveSupport::Concern
- Included in:
- Command::Database::Connect, Command::Database::Create, Command::Database::Test, Command::Upgrade::Database
- Defined in:
- lib/crowbar/client/mixin/database.rb
Overview
A mixin with barclamp related helpers
Constant Summary collapse
- REGEX_HOSTNAME =
"^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$".freeze
- REGEX_IPV4 =
"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$".freeze
- REGEX_USERNAME =
"(?=^.{4,63}$)(?=^[a-zA-Z0-9_]*$)".freeze
- REGEX_PASSWORD =
"(?=^.{4,63}$)(?=^[a-zA-Z0-9_]*$)(?=[a-zA-Z0-9_$&+,:;=?@#|'<>.^*()%!-]*$)".freeze
- REGEX_DATABASE =
"(?=^.{4,253}$)(?=^[a-zA-Z0-9_]*$)(?=[a-zA-Z0-9_$&+,:;=?@#|'<>.^*()%!-]*$)".freeze
- REGEX_PORT =
"(?=^.{1,5}$)(?=^[0-9]*$)(?=^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$)".freeze