Class: Abt::Providers::Asana::Commands::Start
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
#initialize
Class Method Details
.description ⇒ Object
12
13
14
|
# File 'lib/abt/providers/asana/commands/start.rb', line 12
def self.description
"Move current or specified task to WIP section (column) and assign it to you"
end
|
.flags ⇒ Object
16
17
18
19
20
|
# File 'lib/abt/providers/asana/commands/start.rb', line 16
def self.flags
[
["-s", "--set", "Set specified task as current"]
]
end
|
.usage ⇒ Object
8
9
10
|
# File 'lib/abt/providers/asana/commands/start.rb', line 8
def self.usage
"abt start asana[:<project-gid>/<task-gid>]"
end
|
Instance Method Details
22
23
24
25
26
27
28
29
30
|
# File 'lib/abt/providers/asana/commands/start.rb', line 22
def perform
require_task!
print_task(project_gid, task)
update_assignee_if_needed
move_if_needed
maybe_override_current_task
end
|