Sha256: f7213733cb619ae2813f7a8948799610ee6e6e7442f013d589f1945cf338cd39

Contents?: true

Size: 258 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
stairs-0.3.0 lib/stairs/steps/secret_token.rb
stairs-0.2.0 lib/stairs/steps/secret_token.rb
stairs-0.1.0 lib/stairs/steps/secret_token.rb
stairs-0.0.2 lib/stairs/steps/secret_token.rb
stairs-0.0.1 lib/stairs/steps/secret_token.rb