Sha256: fec3d041408cbc81fbd918f54eca92a578ffb509c85c3751d0566d2723d403f0
Contents?: true
Size: 631 Bytes
Versions: 4
Compression:
Stored size: 631 Bytes
Contents
module SymmetricEncryption module Generators class ConfigGenerator < Rails::Generators::Base desc "Creates a SymmetricEncryption configuration file at config/symmetric-encryption.yml" argument :key_path, type: :string, optional: false def self.source_root @_symmetric_encryption_source_root ||= File.expand_path("../templates", __FILE__) end def app_name Rails::Application.subclasses.first.parent.to_s.underscore end def create_config_file template 'symmetric-encryption.yml', File.join('config', "symmetric-encryption.yml") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems