Class: TM::Commands::ListAllProjects

Inherits:
Command
  • Object
show all
Defined in:
lib/tm/commands/list_all_projects.rb

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from TM::Commands::Command

Instance Method Details

#executeObject



4
5
6
7
8
9
10
11
# File 'lib/tm/commands/list_all_projects.rb', line 4

def execute
  projects = @provider_handler.taskmapper.projects
  @formatter.before(projects.first)
  projects.each do |project|
    @formatter.format(project)
  end
  @formatter.after
end