Class: Gizzard::FlushCommand
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
739 740 741 742 743 744 745 746 747 |
# File 'lib/gizzard/commands.rb', line 739 def run args = @argv[0] help!("Requires --all, or a job priority id.") unless args || .flush_all if .flush_all manager.retry_errors() else manager.retry_errors_for(args.to_i) end end |