Sha256: 769edb076edd93ca5e3f3d73dfa90aa73aea44cbb0a9c52d7c9a410cc23920da

Contents?: true

Size: 637 Bytes

Versions: 17

Compression:

Stored size: 637 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

17 entries across 17 versions & 1 rubygems

Version Path
symmetric-encryption-3.4.0 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-3.3 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-3.2 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-3.1.0 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-3.0.3 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-3.0.2 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-3.0.1 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-3.0.0 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-2.2.0 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-2.0.2 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-2.0.1 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-2.0.0 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-1.1.1 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-1.0.0 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-0.9.1 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-0.9.0 lib/rails/generators/symmetric_encryption/config/config_generator.rb
symmetric-encryption-0.8.0 lib/rails/generators/symmetric_encryption/config/config_generator.rb