class Abt::Providers::Harvest::Commands::Tasks
Public Class Methods
description()
click to toggle source
# File lib/abt/providers/harvest/commands/tasks.rb, line 12 def self.description "List available tasks on project - useful for piping into grep etc." end
usage()
click to toggle source
# File lib/abt/providers/harvest/commands/tasks.rb, line 8 def self.usage "abt tasks harvest" end
Public Instance Methods
perform()
click to toggle source
# File lib/abt/providers/harvest/commands/tasks.rb, line 16 def perform prompt_project! unless project_id tasks.each do |task| print_task(project, task) end end
Private Instance Methods
tasks()
click to toggle source
# File lib/abt/providers/harvest/commands/tasks.rb, line 26 def tasks @tasks ||= project_assignment["task_assignments"].map { |ta| ta["task"] } end