Module: RocketApi

Defined in:
lib/rocket_api/errors.rb,
lib/rocket_api/version.rb,
lib/rocket_api/constants.rb,
lib/rocket_api/commands/dirs.rb,
lib/rocket_api/commands/files.rb,
lib/rocket_api/commands/helper.rb,
lib/rocket_api/rocket_commands.rb,
lib/rocket_api/commands/gems_dir.rb,
lib/rocket_api/library/helper_plain_text.rb,
lib/rocket_api/library/gem_repo_plain_text.rb

Defined Under Namespace

Modules: Commands, Library Classes: CreateDirError, Error, InitFilesError, RocketCommands

Constant Summary collapse

VERSION =
"0.0.1.8".freeze
REGEXP_VALID =

Valid input

/[^0-9A-Za-z_-]/.freeze
GEM_PROJECTS_DIR =

Dirs map

%w[bin lib test].freeze
GEM_COMMANDS =
%w[bin! gemspec! gems_main_file! gems_version! gem_test! rake_file! gitignore! gem_file! rubocop_yml!].freeze
AVAILABLE_COMMANDS =
{
  init: {
    gem: %w[init_gem_dir init_gem_files]
  }
}.freeze
PONG =

Ping

"PONG".freeze
INIT_DIR_ERROR =

Answers

"Init directory error".freeze
GEM_DETECTED =
"another one gem exist".freeze
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