Class: Gizzard::FindCommand
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
#run ⇒ Object
518 519 520 521 522 523 524 525 526 |
# File 'lib/gizzard/commands.rb', line 518 def run hosts = @argv << .shard_host hosts.compact.each do |host| manager.shards_for_hostname(host).each do |shard| next if .shard_type && shard.class_name !~ Regexp.new(.shard_type) output shard.id.to_unix end end end |