Sha256: ee09a6988b40f72adc8ff711480a9585352db73cadf2b47e8355c3c4c194276c

Contents?: true

Size: 259 Bytes

Versions: 9

Compression:

Stored size: 259 Bytes

Contents

require "securerandom"

module Stairs
  module Steps
    class SecretToken < Step
      title "Secret Token"
      description "Generate a secure random secret token"

      def run
        env "SECRET_TOKEN", SecureRandom.hex(64)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
stairs-0.7.1 lib/stairs/steps/secret_token.rb
stairs-0.7.0 lib/stairs/steps/secret_token.rb
stairs-0.6.1 lib/stairs/steps/secret_token.rb
stairs-0.6.0 lib/stairs/steps/secret_token.rb
stairs-0.5.1 lib/stairs/steps/secret_token.rb
stairs-0.5.0 lib/stairs/steps/secret_token.rb
stairs-0.4.2 lib/stairs/steps/secret_token.rb
stairs-0.4.1 lib/stairs/steps/secret_token.rb
stairs-0.4.0 lib/stairs/steps/secret_token.rb