class Redmine::Commands::Issues

Command to list issues from Redmine.

Public Class Methods

new(redmine:) click to toggle source
# File lib/redmine/commands/issues.rb, line 32
def initialize(redmine:)
  @redmine = redmine
end

Public Instance Methods

call(_args) click to toggle source
# File lib/redmine/commands/issues.rb, line 36
def call(_args)
  total = options.delete(:total) || 10
  @redmine.issues(options).first(total).each do |issue|
    puts "#{issue.id} #{issue.subject}"
  end
end