Class: FinishedCommand

Inherits:
Command show all
Defined in:
lib/pivotal-github/finished_command.rb

Overview

By default, command runs only when story is finished

Direct Known Subclasses

StoryMerge, StoryPullRequest

Instance Attribute Summary

Attributes inherited from Command

#args, #cmd, #known_options, #options, #unknown_options

Instance Method Summary collapse

Methods inherited from Command

#initialize, #message, #message_ids, #parse, #parser, run!, #story_branch, #story_id, #story_ids

Constructor Details

This class inherits a constructor from Command

Instance Method Details

#run!Object



4
5
6
7
# File 'lib/pivotal-github/finished_command.rb', line 4

def run!
  check_finishes unless override?
  system cmd
end