Module: CommandTower
- Defined in:
- lib/command_tower.rb,
lib/command_tower/error.rb,
lib/command_tower/engine.rb,
lib/command_tower/schema.rb,
lib/command_tower/version.rb,
lib/command_tower/schema/page.rb,
lib/command_tower/schema/user.rb,
lib/command_tower/spec_helper.rb,
lib/command_tower/authorization.rb,
lib/command_tower/schema/error/base.rb,
lib/command_tower/schema/pagination.rb,
lib/command_tower/authorization/role.rb,
lib/command_tower/configuration/base.rb,
lib/command_tower/schema/admin/users.rb,
app/jobs/command_tower/application_job.rb,
lib/command_tower/authorization/entity.rb,
lib/command_tower/configuration/config.rb,
app/helpers/command_tower/schema_helper.rb,
lib/command_tower/schema/inbox/metadata.rb,
lib/command_tower/schema/inbox/modified.rb,
lib/command_tower/configuration/jwt/config.rb,
lib/command_tower/configuration/otp/config.rb,
app/helpers/command_tower/pagination_helper.rb,
app/models/command_tower/application_record.rb,
lib/command_tower/configuration/user/config.rb,
app/helpers/command_tower/application_helper.rb,
app/mailers/command_tower/application_mailer.rb,
lib/command_tower/configuration/admin/config.rb,
lib/command_tower/configuration/email/config.rb,
lib/command_tower/configuration/login/config.rb,
lib/command_tower/schema/inbox/blast_request.rb,
app/controllers/command_tower/user_controller.rb,
lib/command_tower/schema/inbox/blast_response.rb,
lib/command_tower/schema/inbox/message_entity.rb,
app/controllers/command_tower/admin_controller.rb,
app/services/command_tower/admin_service/users.rb,
lib/command_tower/configuration/username/check.rb,
lib/command_tower/schema/error/invalid_argument.rb,
app/controllers/command_tower/username_controller.rb,
lib/command_tower/configuration/pagination/config.rb,
lib/command_tower/schema/plain_text/login_request.rb,
lib/command_tower/configuration/application/config.rb,
lib/command_tower/schema/plain_text/login_response.rb,
app/mailers/command_tower/email_verification_mailer.rb,
lib/command_tower/schema/inbox/message_blast_entity.rb,
app/controllers/command_tower/application_controller.rb,
app/services/command_tower/pagination_service_helper.rb,
lib/command_tower/configuration/authorization/config.rb,
app/services/command_tower/inbox_service/blast/delete.rb,
app/services/command_tower/inbox_service/blast/upsert.rb,
app/services/command_tower/inbox_service/message/send.rb,
lib/command_tower/schema/inbox/message_blast_metadata.rb,
app/controllers/command_tower/inbox/message_controller.rb,
app/services/command_tower/inbox_service/blast/metadata.rb,
app/services/command_tower/inbox_service/blast/retrieve.rb,
app/services/command_tower/inbox_service/message/modify.rb,
lib/command_tower/schema/plain_text/create_user_request.rb,
app/controllers/command_tower/auth/plain_text_controller.rb,
lib/command_tower/schema/error/invalid_argument_response.rb,
lib/command_tower/schema/plain_text/create_user_response.rb,
lib/command_tower/schema/plain_text/email_verify_request.rb,
app/services/command_tower/inbox_service/message/metadata.rb,
app/services/command_tower/inbox_service/message/retrieve.rb,
lib/command_tower/schema/plain_text/email_verify_response.rb,
app/controllers/command_tower/inbox/message_blast_controller.rb,
lib/command_tower/schema/plain_text/email_verify_send_request.rb,
lib/command_tower/schema/plain_text/email_verify_send_response.rb,
app/services/command_tower/inbox_service/blast/new_user_blaster.rb,
lib/command_tower/configuration/login/strategy/plain_text/config.rb,
lib/command_tower/configuration/login/strategy/plain_text/lockable.rb,
lib/command_tower/configuration/login/strategy/plain_text/email_verify.rb
Defined Under Namespace
Modules: AdminService, ApplicationHelper, ArgumentValidation, Auth, Authorization, Authorize, Configuration, Inbox, InboxService, Jwt, PaginationHelper, PaginationServiceHelper, Schema, SchemaHelper, Secrets, ServiceLogging, SpecHelper, UserAttributes, Username
Classes: AdminController, ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, ConfigureGenerator, EmailVerificationMailer, Engine, Error, ServiceBase, UserController, UsernameController
Constant Summary
collapse
- VERSION =
"0.4.0"
Class Method Summary
collapse
Class Method Details
.app_name ⇒ Object
22
23
24
|
# File 'lib/command_tower.rb', line 22
def self.app_name
Proc === config.app.app_name ? config.app.app_name.() : config.app.app_name
end
|
.app_name_for_comms ⇒ Object
26
27
28
|
# File 'lib/command_tower.rb', line 26
def self.app_name_for_comms
Proc === config.app.communication_name ? config.app.communication_name.() : config.app.communication_name
end
|
.config ⇒ Object
8
9
10
|
# File 'lib/command_tower.rb', line 8
def self.config
@config ||= Configuration::Config.new
end
|
.config=(configuration) ⇒ Object
16
17
18
19
20
|
# File 'lib/command_tower.rb', line 16
def self.config=(configuration)
raise ArgumentError, "Expected Configuration::Config. Given #{configuration.class}" unless Configuration::Config === configuration
@config = configuration
end
|
12
13
14
|
# File 'lib/command_tower.rb', line 12
def self.configure
yield(config)
end
|
.default_app_name ⇒ Object
30
31
32
|
# File 'lib/command_tower.rb', line 30
def self.default_app_name
::Rails.application.class.module_parent_name
end
|