Sha256: 3de9e88c634f44a43cc1d3ccf30e2d9f179b69e3333d131d2de1777f636f0d62

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

say "Installing Javascript library"
run "yarn add turbo-replay"

say "Creating initializer"

initializer "turbo_replay.rb", <<-CODE
  require 'turbo/replay'

  Turbo::Replay.configure do |config|
    redis_client = Redis.new(
      host: ENV['REDIS_HOST'],
      port: ENV['REDIS_PORT']
    )

    # Store for broadcasted messages
    config.repo = Turbo::Replay::Repo::Redis.new(client: redis_client)

    # Retention policy
    config.retention = Turbo::Replay::Retention.new(ttl: 60.minutes, size: 50)
  end
CODE

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
turbo-replay-0.1.2 lib/tasks/turbo/install/task.rb
turbo-replay-0.1.1 lib/tasks/turbo/install/task.rb