class Rails::Command::EncryptedCommand

def change_encrypted_configuration_in_system_editor

def change_encrypted_configuration_in_system_editor
  using_system_editor do
    encrypted_configuration.change { |tmp_path| system_editor(tmp_path) }
    say "File encrypted and saved."
    warn_if_encrypted_configuration_is_invalid
  end
rescue ActiveSupport::EncryptedFile::MissingKeyError => error
  say error.message
rescue ActiveSupport::MessageEncryptor::InvalidMessage
  say "Couldn't decrypt #{content_path}. Perhaps you passed the wrong key?"
end