Module: Rails::Messages

Defined in:
lib/project_types/rails/messages/messages.rb

Constant Summary collapse

MESSAGES =
{
  rails: {
    help: <<~HELP,

    error: {
      generic: "Error",
    },

    gem: {
      checking_installation_path: "Checking path %s for gem %s",
      installed: "Installed %s gem",
      installed_debug: "%s installed: %s",
      installing: "Installing %s gem…",
      setting_gem_home: "GEM_HOME being set to %s",
      setting_gem_path: "GEM_PATH being set to %s",
    },
    deploy: {
      help: <<~HELP,
      extended_help: <<~HELP,
    },

    generate: {
      help: <<~HELP,
      extended_help: <<~EXAMPLES,

      error: {
        name_exists: "%s already exists!",
        generic: "Error generating %s",
      },

      webhook: {
        help: <<~HELP,

        select: "What type of webhook would you like to create?",
        selected: "Generating webhook: %s",
      },
    },
    forms: {
      create: {
        error: {
          invalid_app_name: "App name cannot contain 'Shopify'",
          invalid_app_type: "Invalid app type %s",
          invalid_db_type: "Invalid database type %s",
        },
        app_name: "App name",
        app_type: {
          select: "What type of app are you building?",
          select_public: "Public: An app built for a wide merchant audience.",
          select_custom: "Custom: An app custom built for a single client.",
          selected: "App type {{green:%s}}",
        },
        db: {
          want_select: <<~WANT_SELECT,
          select: "What database type would you like to use? Please ensure the database is installed.",
          select_sqlite3: "SQLite (default)",
          select_mysql: "MySQL",
          select_postgresql: "PostgreSQL",
          select_oracle: "Oracle",
          select_frontbase: "FrontBase",
          select_ibm_db: "IBM_DB",
          select_sqlserver: "SQL Server",
          select_jdbcmysql: "JDBC MySQL",
          select_jdbcsqlite3: "JDBC SQlite",
          select_jdbcpostgresql: "JDBC PostgreSQL",
          select_jdbc: "JDBC",
          selected: "Database Type {{green:%s}}",
        },
      },
    },
  },
}.freeze