Sha256: b2f29df1f195df9b11f089ba6bc12db03d9108ff0d1d679206e60ca9a170d3e2

Contents?: true

Size: 350 Bytes

Versions: 39

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

module Rails
  module Command
    class SecretCommand < Base # :nodoc:
      desc "secret", "Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie sessions)."
      def perform
        require "securerandom"
        puts SecureRandom.hex(64)
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 5 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/commands/secret/secret_command.rb
railties-8.0.1 lib/rails/commands/secret/secret_command.rb
railties-8.0.0.1 lib/rails/commands/secret/secret_command.rb
railties-7.2.2.1 lib/rails/commands/secret/secret_command.rb
railties-7.1.5.1 lib/rails/commands/secret/secret_command.rb
railties-8.0.0 lib/rails/commands/secret/secret_command.rb
railties-7.2.2 lib/rails/commands/secret/secret_command.rb
railties-7.1.5 lib/rails/commands/secret/secret_command.rb
railties-8.0.0.rc2 lib/rails/commands/secret/secret_command.rb
railties-7.2.1.2 lib/rails/commands/secret/secret_command.rb
railties-7.1.4.2 lib/rails/commands/secret/secret_command.rb
railties-8.0.0.rc1 lib/rails/commands/secret/secret_command.rb
railties-7.2.1.1 lib/rails/commands/secret/secret_command.rb
railties-7.1.4.1 lib/rails/commands/secret/secret_command.rb
railties-8.0.0.beta1 lib/rails/commands/secret/secret_command.rb
omg-railties-8.0.0.alpha9 lib/rails/commands/secret/secret_command.rb
omg-railties-8.0.0.alpha8 lib/rails/commands/secret/secret_command.rb
omg-railties-8.0.0.alpha7 lib/rails/commands/secret/secret_command.rb
omg-railties-8.0.0.alpha4 lib/rails/commands/secret/secret_command.rb
omg-railties-8.0.0.alpha3 lib/rails/commands/secret/secret_command.rb