Class: PivotalIntegration::Command::Comment
- Defined in:
- lib/pivotal-integration/command/comment.rb
Overview
The class that encapsulates assigning current Pivotal Tracker Story to a user
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from PivotalIntegration::Command::Base
Instance Method Details
#run(*arguments) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/pivotal-integration/command/comment.rb', line 23 def run(*arguments) comment = arguments.first abort "A comment must be provided." unless comment print "Adding comment to story ##{story.id}... " PivotalIntegration::Util::Story.add_comment(story, comment) puts 'OK' end |