Class: PivotalIntegration::Command::Info

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

Overview

The class that encapsulates assigning current Pivotal Tracker Story to a user

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(*arguments) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/pivotal-integration/command/info.rb', line 23

def run(*arguments)
  if story
    PivotalIntegration::Util::Story.pretty_print story
  else
    abort "No story currently selected."
  end
end