Class: Bicho::CLI::Commands::Attachments
- Inherits:
-
Bicho::CLI::Command
- Object
- Bicho::CLI::Command
- Bicho::CLI::Commands::Attachments
- Defined in:
- lib/bicho/cli/commands/attachments.rb
Overview
Command to display bug information.
Instance Attribute Summary
Attributes inherited from Bicho::CLI::Command
Instance Method Summary collapse
Methods inherited from Bicho::CLI::Command
#initialize, opt, options, #parse_options, #parser
Methods included from Logging
Constructor Details
This class inherits a constructor from Bicho::CLI::Command
Instance Method Details
#do(global_opts, opts, args) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/bicho/cli/commands/attachments.rb', line 65 def do(global_opts, opts, args) client = ::Bicho::Client.new(global_opts[:bugzilla]) client.get_bugs(*args).each do |bug| if opts[:download] download(bug, opts[:supportconfig]) else t.say("Bug #{t.color(bug.id.to_s, :headline)} has #{bug.attachments.size} attachments") end end 0 end |