Sha256: 0c1d4296531c0fe38adb97dc2626a240f3b48dacbd4510675b1ca413fbb0799a

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

# frozen_string_literal: true

# lib/rails_app_generator/rag_initializer.rb

module RailsAppGenerator
  # Custom add-ons for RailsAppGenerator
  module AddOns
    # Add Bcrypt to rails application
    class Bcrypt < RailsAppGenerator::Addon
      required_gem gem.version('bcrypt', '3.1.18', 'bcrypt() is a sophisticated and secure hash algorithm designed by The OpenBSD project for hashing passwords.')

      def apply
        say 'Setting up Bcrypt'
      end

      def before_bundle
        say 'Setting up Bcrypt - before bundle install'
      end

      def after_bundle
        say 'Setting up Bcrypt - after bundle install'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_app_generator-0.2.14 lib/rails_app_generator/addons/bcrypt.rb