Class: Rails::Forms::Create
- Inherits:
-
ShopifyCLI::Form
- Object
- ShopifyCLI::Form
- Rails::Forms::Create
- Defined in:
- lib/project_types/rails/forms/create.rb
Constant Summary collapse
- VALID_DB_TYPES =
["sqlite3", "mysql", "postgresql", "oracle", "frontbase", "ibm_db", "sqlserver", "jdbcmysql", "jdbcsqlite3", "jdbcpostgresql", "jdbc"]
Instance Attribute Summary
Attributes inherited from ShopifyCLI::Form
Instance Method Summary collapse
Methods inherited from ShopifyCLI::Form
ask, flag_arguments, #initialize, positional_arguments
Constructor Details
This class inherits a constructor from ShopifyCLI::Form
Instance Method Details
#ask ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/project_types/rails/forms/create.rb', line 19 def ask self.name ||= CLI::UI::Prompt.ask(ctx.("rails.forms.create.app_name")) self.name = format_name self.type = ask_type res = ShopifyCLI::Tasks::SelectOrgAndShop.call(ctx, organization_id: organization_id, shop_domain: shop_domain) self.organization_id = res[:organization_id] self.shop_domain = res[:shop_domain] self.db = ask_db end |