Class: Abt::Providers::Devops::Commands::WorkItems

Inherits:
BaseCommand show all
Defined in:
lib/abt/providers/devops/commands/work_items.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#config, #path

Attributes inherited from BaseCommand

#ari, #cli, #flags

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Methods inherited from BaseCommand

flags, #initialize

Constructor Details

This class inherits a constructor from Abt::Providers::Devops::BaseCommand

Class Method Details

.descriptionObject



12
13
14
# File 'lib/abt/providers/devops/commands/work_items.rb', line 12

def self.description
  "List all work items on board - useful for piping into grep etc."
end

.usageObject



8
9
10
# File 'lib/abt/providers/devops/commands/work_items.rb', line 8

def self.usage
  "abt work-items devops"
end

Instance Method Details

#performObject



16
17
18
19
20
21
22
# File 'lib/abt/providers/devops/commands/work_items.rb', line 16

def perform
  prompt_board! unless board_name

  work_items.each do |work_item|
    print_work_item(organization_name, project_name, team_name, board, work_item)
  end
end