class PivotalIntegration::Command::Comment
The class that encapsulates assigning current Pivotal Tracker Story to a user
Public Instance Methods
run(*arguments)
click to toggle source
# 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