lib/rocket_api/constants.rb in rocket_api-0.0.1.9 vs lib/rocket_api/constants.rb in rocket_api-0.0.2.0
- old
+ new
@@ -2,11 +2,11 @@
# Valid input
REGEXP_VALID = /[^0-9A-Za-z_-]/.freeze
CHECK_APPS = %w[*.gemspec *.ru].freeze
# Valid commands
- COMMANDS = { init: "init", gem: "gem", rack: "rack" }.freeze
+ COMMANDS = { init: "init", gem: "gem", rack: "rack", bot: "bot" }.freeze
# Gem
GEM_DIRS = %w[bin lib test].freeze
GEM_FILES = %w[bin! gemspec! gems_main_file! gems_version! gem_test! rake_file! gitignore! gem_file! rubocop_yml!].freeze
GEM_MAP = { init_dirs: GEM_DIRS, init_files: GEM_FILES }.freeze
@@ -14,15 +14,21 @@
# Rack
RACK_DIRS = %w[app config test].freeze
RACK_FILES = %w[rack_routes! rack_base_controller! rack_config_ru! gitignore! rack_app! rack_router! rack_initializers! rack_application! rack_gemfile!].freeze
RACK_MAP = { init_dirs: RACK_DIRS, init_files: RACK_FILES }.freeze
+ # Bot
+ BOT_DIRS = %w[app bin config db test services].freeze
+ BOT_FILES = %w[readme! fake!].freeze
+ BOT_MAP = { init_dirs: BOT_DIRS, init_files: BOT_FILES }.freeze
+
# Dirs map
AVAILABLE_COMMANDS = {
COMMANDS[:init] => {
COMMANDS[:gem] => GEM_MAP,
- COMMANDS[:rack] => RACK_MAP
+ COMMANDS[:rack] => RACK_MAP,
+ COMMANDS[:bot] => BOT_MAP
}
}.freeze
# Ping
PONG = "PONG".freeze
@@ -33,11 +39,11 @@
FOLDER_EXIST = "folder exist:".freeze
FILE_EXIST = "file already exist:".freeze
WRONG_RESPONSE = "Wrong command".freeze
EMPTY_NAME = "Project name is empty".freeze
INIT_FAIL = "Init action fail:".freeze
- CREATE_FAILED = "Create failed:".freeze
- CREATE_SUCCESS = "Successfully created:".freeze
+ CREATE_FAILED = "Fail:".freeze
+ CREATE_SUCCESS = "Success:".freeze
# Text
TAB = "\s\s".freeze
DOUBLE_TAB = "\s\s\s\s".freeze
end