Class: Rails::Command::EncryptedCommand

Inherits:
Base
  • Object
show all
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

#editObject



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

#showObject



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 || missing_encrypted_configuration_message
end