Sha256: 1101b1a8a04a5464908801843b7621ed7cea648b095cc6dcfabea0ffd7895dc4

Contents?: true

Size: 659 Bytes

Versions: 5

Compression:

Stored size: 659 Bytes

Contents

# frozen_string_literal: true

require "rails/commands/credentials/credentials_command"

module Rails
  module Command
    class LocalCredentialsCommand < CredentialsCommand
      desc "edit", "Open the decrypted local credentials in `$VISUAL` or `$EDITOR` for editing"
      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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
anyway_config-2.6.4 lib/rails/commands/local_credentials/local_credentials_command.rb
anyway_config-2.6.3 lib/rails/commands/local_credentials/local_credentials_command.rb
anyway_config-2.6.2 lib/rails/commands/local_credentials/local_credentials_command.rb
anyway_config-2.6.1 lib/rails/commands/local_credentials/local_credentials_command.rb
anyway_config-2.6.0 lib/rails/commands/local_credentials/local_credentials_command.rb