Class: Rails::Command::EncryptedCommand
- Includes:
- Helpers::Editor
- Defined in:
- lib/rails/commands/encrypted/encrypted_command.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from Base
banner, base_name, class_usage, command_name, default_command_root, desc, engine?, executable, exit_on_failure?, help, hide_command!, inherited, namespace, perform, printing_commands, usage_path
Methods included from Actions
#boot_application!, #load_environment_config!, #load_generators, #load_tasks, #require_application!, #set_application_directory!
Instance Method Details
#edit ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/rails/commands/encrypted/encrypted_command.rb', line 16 def edit(*) load_environment_config! ensure_encryption_key_has_been_added ensure_encrypted_configuration_has_been_added change_encrypted_configuration_in_system_editor end |
#show ⇒ Object
26 27 28 29 30 |
# File 'lib/rails/commands/encrypted/encrypted_command.rb', line 26 def show(*) load_environment_config! say encrypted_configuration.read.presence || end |