Sha256: 97caf6539df058a722dddae05fe5995d0788d7be4a8d5bf2dbf6364536ad1db7

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

module SymmetricEncryption
  module Generators
    class NewKeysGenerator < Rails::Generators::Base
      desc 'Generate new Symmetric key and initialization vector based on values in config/symmetric-encryption.yml'

      argument :environment, type: :string, optional: false

      def create_config_file
        SymmetricEncryption.generate_symmetric_key_files(File.join('config', 'symmetric-encryption.yml'), environment)
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
symmetric-encryption-3.9.1 lib/rails/generators/symmetric_encryption/new_keys/new_keys_generator.rb
symmetric-encryption-3.9.0 lib/rails/generators/symmetric_encryption/new_keys/new_keys_generator.rb
symmetric-encryption-3.8.3 lib/rails/generators/symmetric_encryption/new_keys/new_keys_generator.rb
symmetric-encryption-3.8.2 lib/rails/generators/symmetric_encryption/new_keys/new_keys_generator.rb
symmetric-encryption-3.8.1 lib/rails/generators/symmetric_encryption/new_keys/new_keys_generator.rb
symmetric-encryption-3.8.0 lib/rails/generators/symmetric_encryption/new_keys/new_keys_generator.rb