Module: Rails::Messages

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

Constant Summary collapse

MESSAGES =
{
  rails: {
    help: "      Suite of commands for developing Ruby on Rails apps. See {{command:%1$s app rails <command> --help}} for usage of each command.\n        Usage: {{command:%1$s app rails [ %2$s ]}}\n    HELP\n\n    error: {\n      generic: \"Error\",\n    },\n\n    gem: {\n      checking_installation_path: \"Checking path %s for gem %s\",\n      installed: \"Installed %s gem\",\n      installed_debug: \"%s installed: %s\",\n      installing: \"Installing %s gem\u2026\",\n      setting_gem_home: \"GEM_HOME being set to %s\",\n      setting_gem_path: \"GEM_PATH being set to %s\",\n    },\n    deploy: {\n      help: <<~HELP,\n        Deploy the current Rails project to a hosting service. Heroku ({{underline:https://www.heroku.com}}) is currently the only option, but more will be added in the future.\n          Usage: {{command:%s app rails deploy [ heroku ]}}\n      HELP\n      extended_help: <<~HELP,\n        {{bold:Subcommands:}}\n          {{cyan:heroku}}: Deploys the current Rails project to Heroku.\n            Usage: {{command:%s app rails deploy heroku}}\n      HELP\n    },\n\n    generate: {\n      help: <<~HELP,\n        Generate code in your Rails project. Currently supports generating new webhooks.\n          Usage: {{command:%s app rails generate [ webhook ]}}\n      HELP\n      extended_help: <<~EXAMPLES,\n        {{bold:Examples:}}\n          {{cyan:%s generate webhook PRODUCTS_CREATE}}\n            Generate and register a new webhook that will be called every time a new product is created on your store.\n      EXAMPLES\n\n      error: {\n        name_exists: \"%s already exists!\",\n        generic: \"Error generating %s\",\n      },\n\n      webhook: {\n        help: <<~HELP,\n          Generate and register a new webhook that listens for the specified Shopify store event.\n            Usage: {{command:%s app rails generate webhook <type>}}\n        HELP\n\n        select: \"What type of webhook would you like to create?\",\n        selected: \"Generating webhook: %s\",\n      },\n    },\n    forms: {\n      create: {\n        error: {\n          invalid_app_name: \"App name cannot contain 'Shopify'\",\n          invalid_app_type: \"Invalid app type %s\",\n          invalid_db_type: \"Invalid database type %s\",\n        },\n        app_name: \"App name\",\n        app_type: {\n          select: \"What type of app are you building?\",\n          select_public: \"Public: An app built for a wide merchant audience.\",\n          select_custom: \"Custom: An app custom built for a single client.\",\n          selected: \"App type {{green:%s}}\",\n        },\n        db: {\n          want_select: <<~WANT_SELECT,\n            Would you like to select what database type to use now? (SQLite is the default)\n            If you want to change this in the future, run {{command:rails db:system:change --to=[new_db_type]}}. For more info:\n            {{underline:https://gorails.com/episodes/rails-6-db-system-change-command}}\n          WANT_SELECT\n          select: \"What database type would you like to use? Please ensure the database is installed.\",\n          select_sqlite3: \"SQLite (default)\",\n          select_mysql: \"MySQL\",\n          select_postgresql: \"PostgreSQL\",\n          select_oracle: \"Oracle\",\n          select_frontbase: \"FrontBase\",\n          select_ibm_db: \"IBM_DB\",\n          select_sqlserver: \"SQL Server\",\n          select_jdbcmysql: \"JDBC MySQL\",\n          select_jdbcsqlite3: \"JDBC SQlite\",\n          select_jdbcpostgresql: \"JDBC PostgreSQL\",\n          select_jdbc: \"JDBC\",\n          selected: \"Database Type {{green:%s}}\",\n        },\n      },\n    },\n  },\n}.freeze\n",