Class: PivotalIntegration::Command::Label

Inherits:
Base
  • Object
show all
Defined in:
lib/pivotal-integration/command/label.rb

Overview

The class that encapsulates starting a Pivotal Tracker Story

Instance Method Summary collapse

Methods inherited from Base

desc, #initialize, #story

Constructor Details

This class inherits a constructor from PivotalIntegration::Command::Base

Instance Method Details

#run(mode, *labels) ⇒ void

This method returns an undefined value.

Adds labels for active story.



28
29
30
31
32
# 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