method

ensure_credentials_have_been_added

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: CredentialsCommand
ensure_credentials_have_been_added() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/commands/credentials/credentials_command.rb, line 87
        def ensure_credentials_have_been_added
          require "rails/generators/rails/credentials/credentials_generator"

          Rails::Generators::CredentialsGenerator.new(
            [content_path, key_path],
            skip_secret_key_base: environment_specified? && ]development test].include?(environment),
            quiet: true
          ).invoke_all
        end
Register or log in to add new notes.