class PivotalIntegration::Command::Label

The class that encapsulates starting a Pivotal Tracker Story

Public Instance Methods

run(mode, *labels) click to toggle source

Adds labels for active story. @return [void]

# File lib/pivotal-integration/command/label.rb, line 28
def run(mode, *labels)
  abort "You need to specify mode first [#{MODES}], e.g. 'git label add to_qa'" unless MODES.include? mode

  PivotalIntegration::Util::Label.send(mode, story, *labels)
end