Class: Gizzard::DeleteCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/gizzard/commands.rb

Instance Attribute Summary

Attributes inherited from Command

#argv, #buffer, #command_options, #global_options, #job_injector, #manager

Instance Method Summary collapse

Methods inherited from Command

classify, #confirm!, #get_base_name, #help!, #initialize, make_job_injector, make_manager, #output, #require_tables, #require_template_options, run

Constructor Details

This class inherits a constructor from Gizzard::Command

Instance Method Details

#runObject



239
240
241
242
243
244
245
# File 'lib/gizzard/commands.rb', line 239

def run
  argv.each do |arg|
    id  = ShardId.parse(arg)
    manager.delete_shard(id)
    output id.to_unix
  end
end