class Abt::Providers::Harvest::Commands::Share

Public Class Methods

description() click to toggle source
# File lib/abt/providers/harvest/commands/share.rb, line 12
def self.description
  "Print project/task ARI"
end
usage() click to toggle source
# File lib/abt/providers/harvest/commands/share.rb, line 8
def self.usage
  "abt share harvest[:<project-id>[/<task-id>]]"
end

Public Instance Methods

perform() click to toggle source
# 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