Sha256: 28933ca678b9eebec84ef7090bfa46922a29ebd63aee7a2322803018bb1ac526

Contents?: true

Size: 163 Bytes

Versions: 4

Compression:

Stored size: 163 Bytes

Contents

class RemoveKey < Struct.new(:backend, :key)
  def execute
    Authorization.execute_if_authorized_for(:remove_content) do
      backend.del(key)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redis_monitor-0.3.3 lib/engine/app/lib/commands/remove_key.rb
redis_monitor-0.3.2 lib/engine/app/lib/commands/remove_key.rb
redis_monitor-0.3 lib/engine/app/lib/commands/remove_key.rb
redis_monitor-0.2.1 lib/engine/app/lib/commands/remove_key.rb