Class: Decidim::Voca::Rpc::SeedAdmin
- Inherits:
-
Object
- Object
- Decidim::Voca::Rpc::SeedAdmin
- Includes:
- VocaDecidim
- Defined in:
- app/rpc/decidim/voca/rpc/seed_admin.rb
Constant Summary
Constants included from VocaDecidim
VocaDecidim::DecidimOrganizationColorSettings, VocaDecidim::DecidimOrganizationFeatureFlagSettings, VocaDecidim::DecidimOrganizationFileUploadSettings, VocaDecidim::DecidimOrganizationLocaleSettings, VocaDecidim::DecidimOrganizationNamingSettings, VocaDecidim::DecidimOrganizationPermissionSettings, VocaDecidim::DecidimOrganizationSMTPSettings, VocaDecidim::GetSettingsResponse, VocaDecidim::PingResponse, VocaDecidim::SETTINGS_MACHINE_TRANSLATION_PRIORITY_OPTION, VocaDecidim::SETTINGS_REGISTER_MODE_OPTION, VocaDecidim::SETTINGS_SMTP_AUTHENTICATION_OPTION, VocaDecidim::SETTINGS_SMTP_OPENSSL_OPTION, VocaDecidim::SeedAdminRequest, VocaDecidim::SeedAdminResponse, VocaDecidim::SetSettingsRequest
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
Instance Method Summary collapse
-
#initialize(message) ⇒ SeedAdmin
constructor
A new instance of SeedAdmin.
-
#seed ⇒ Object
migrate the database and insert default values.
Constructor Details
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'app/rpc/decidim/voca/rpc/seed_admin.rb', line 6 def @message end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
6 7 8 |
# File 'app/rpc/decidim/voca/rpc/seed_admin.rb', line 6 def organization @organization end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
6 7 8 |
# File 'app/rpc/decidim/voca/rpc/seed_admin.rb', line 6 def password @password end |
Instance Method Details
#seed ⇒ Object
migrate the database and insert default values.
16 17 18 19 |
# File 'app/rpc/decidim/voca/rpc/seed_admin.rb', line 16 def seed seed_system_admin! seed_admin! end |