Sha256: a4d445a6c61ba14a9fb9cbca946f360851b507303a0b95daf2912dc5c5649e33

Contents?: true

Size: 800 Bytes

Versions: 3

Compression:

Stored size: 800 Bytes

Contents

# frozen_string_literal: true

namespace 'dynamo_db' do
  namespace 'session_store' do
    desc 'Create the Amazon DynamoDB session store table'
    task create_table: :environment do
      options = Rails.application.config.session_options
      Aws::SessionStore::DynamoDB::Table.create_table(options)
    end

    desc 'Delete the Amazon DynamoDB session store table'
    task delete_table: :environment do
      options = Rails.application.config.session_options
      Aws::SessionStore::DynamoDB::Table.delete_table(options)
    end

    desc 'Clean up old sessions in the Amazon DynamoDB session store table'
    task clean: :environment do
      options = Rails.application.config.session_options
      Aws::SessionStore::DynamoDB::GarbageCollection.collect_garbage(options)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aws-actiondispatch-dynamodb-1.0.0 lib/tasks/dynamo_db/session_store.rake
aws-actiondispatch-dynamodb-0.2.0 lib/tasks/dynamo_db/session_store.rake
aws-actiondispatch-dynamodb-0.1.0 lib/tasks/dynamo_db/session_store.rake