method

add_encrypted_file_silently

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: EncryptedFileGenerator
add_encrypted_file_silently(file_path, key_path, template = encrypted_file_template) public

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/generators/rails/encrypted_file/encrypted_file_generator.rb, line 9
      def add_encrypted_file_silently(file_path, key_path, template = encrypted_file_template)
        unless File.exist?(file_path)
          ActiveSupport::EncryptedFile.new(
            content_path: file_path,
            key_path: key_path,
            env_key: "RAILS_MASTER_KEY",
            raise_if_missing_key: true
          ).write(template)
        end
      end
Register or log in to add new notes.