class Redmine::Commands::Projects

Command to list projects in Redmine.

Public Class Methods

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

Public Instance Methods

call(_arguments) click to toggle source
# File lib/redmine/commands/projects.rb, line 13
def call(_arguments)
  @redmine.projects.each do |project|
    puts "#{project.id} #{project.name}"
  end
end