Sha256: 94c118d04668180c36b21e7516ad6e1f0bfa7a042b43632f67522ca2811b564c

Contents?: true

Size: 597 Bytes

Versions: 5

Compression:

Stored size: 597 Bytes

Contents

module SymmetricEncryption
  module Generators
    class HerokuConfigGenerator < Rails::Generators::Base
      desc "Creates a SymmetricEncryption configuration file at config/symmetric-encryption.yml for use in heroku"

      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

5 entries across 5 versions & 1 rubygems

Version Path
symmetric-encryption-3.7.2 lib/rails/generators/symmetric_encryption/heroku_config/heroku_config_generator.rb
symmetric-encryption-3.7.1 lib/rails/generators/symmetric_encryption/heroku_config/heroku_config_generator.rb
symmetric-encryption-3.7.0 lib/rails/generators/symmetric_encryption/heroku_config/heroku_config_generator.rb
symmetric-encryption-3.6.0 lib/rails/generators/symmetric_encryption/heroku_config/heroku_config_generator.rb
symmetric-encryption-3.4.0 lib/rails/generators/symmetric_encryption/heroku_config/heroku_config_generator.rb