Class: Abt::Providers::Harvest::Commands::Share
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/harvest/commands/share.rb', line 12
def self.description
"Print project/task ARI"
end
|
.usage ⇒ Object
8
9
10
|
# File 'lib/abt/providers/harvest/commands/share.rb', line 8
def self.usage
"abt share harvest[:<project-id>[/<task-id>]]"
end
|
Instance Method Details
16
17
18
19
20
21
22
|
# File 'lib/abt/providers/harvest/commands/share.rb', line 16
def perform
if path != ""
cli.print_ari("harvest", path)
elsif cli.output.isatty
warn("No configuration for project. Did you initialize Harvest?")
end
end
|