Class: Abt::Providers::Asana::Commands::BranchName
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
Class Method Details
.description ⇒ Object
12
13
14
|
# File 'lib/abt/providers/asana/commands/branch_name.rb', line 12
def self.description
"Suggest a git branch name for the current/specified task."
end
|
.usage ⇒ Object
8
9
10
|
# File 'lib/abt/providers/asana/commands/branch_name.rb', line 8
def self.usage
"abt branch-name asana[:<project-gid>/<task-gid>]"
end
|
Instance Method Details
16
17
18
19
20
21
|
# File 'lib/abt/providers/asana/commands/branch_name.rb', line 16
def perform
require_task!
ensure_current_is_valid!
puts name
end
|