Class: Gizzard::DrillCommand

Inherits:
ReportCommand 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 ReportCommand

#down, #group, #parse, #sign

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



507
508
509
510
511
512
513
514
# File 'lib/gizzard/commands.rb', line 507

def run
  signature = @argv.shift
  @argv.map do |shard|
    if sign(parse(down(ShardId.parse(shard))).join("\n")) == signature
      puts parse(down(ShardId.parse(shard)), nil, 0, false).join("\n")
    end
  end
end