Class: Herdis::Handlers::RemoveShards

Inherits:
Goliath::API
  • Object
show all
Includes:
Common
Defined in:
lib/herdis/handlers/remove_shards.rb

Instance Method Summary collapse

Methods included from Common

included

Instance Method Details

#response(env) ⇒ Object



9
10
11
12
13
14
# File 'lib/herdis/handlers/remove_shards.rb', line 9

def response(env)
  shard_ids = env['params']["shard_ids"]
  shepherd_id = env['params'][:shepherd_id]
  Herdis::Plugins::ShepherdConnection.shepherd.remove_shards(shepherd_id, shard_ids)
  [204, {}, ""]
end