Class: Rails::Command::LocalCredentialsCommand

Inherits:
CredentialsCommand
  • Object
show all
Defined in:
lib/rails/commands/local_credentials/local_credentials_command.rb

Instance Method Summary collapse

Instance Method Details

#editObject



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/rails/commands/local_credentials/local_credentials_command.rb', line 9

def edit
  load_environment_config!
  load_generators

  @content_path = "config/credentials/local.yml.enc"
  @key_path = "config/credentials/local.key"

  ensure_encryption_key_has_been_added
  ensure_credentials_have_been_added
  ensure_diffing_driver_is_configured

  change_credentials_in_system_editor
end