lib/app42/base/constants.rb in app42-0.6.4 vs lib/app42/base/constants.rb in app42-0.7.0
- old
+ new
@@ -26,10 +26,15 @@
SUBSCRIPTION_TYPE = ['FREE', 'PAID']
# flavour type
FLAVOUR_TYPE = ['light', 'medium', 'heavy']
+ # app operation type
+ APP_STOP = { "hardStop" => "Hard Stop", "softStop" => "Soft Stop"}
+ APP_START = { "hardStart" => "Hard Start", "softStart" => "Soft Start"}
+ APP_RESTART = { "hardRestart" => "Hard Restart", "softRestart" => "Soft Restart"}
+
DATABASE_NAME_NOT_ALLOWED = %w(mysql couchdb mongodb postgresql database sql)
# regex for special character
SPECIAL = "?<>',?[]}{=-)(*&^%$#`~{}@ .+!_/"
REGEX = /[#{SPECIAL.gsub(/./){|char| "\\#{char}"}}]/
@@ -39,7 +44,6 @@
DBNAME_SPECIAL = "?<>',?[]}{=-)(*&^%$#`~{}@ .+!/"
DBNAME_REGEX = /[#{DBNAME_SPECIAL.gsub(/./){|char| "\\#{char}"}}]/
# regex for IP Address
IP_REGEX = /^([0]?\d\d?|1[0-1,3-9]\d|12[0-6,8-9]|2[0-4]d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.((?!0)|(?!1)|010|(01[0-9]{1,1}&0[1-9]{1,2})|0[0-9]{1,1}[1-9]{1,1}|[2-9]{0,2}|1[0-9]{1,2}|2[0-4]\d|25[0-4])$/
-
-end
\ No newline at end of file
+end