Class: GitPivotalTracker::Info

Inherits:
Base
  • Object
show all
Defined in:
lib/git_pivotal_tracker/info.rb

Constant Summary

Constants inherited from Base

Base::GIT_DIR

Instance Attribute Summary

Attributes inherited from Base

#options, #repository

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from GitPivotalTracker::Base

Instance Method Details

#run!Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/git_pivotal_tracker/info.rb', line 4

def run!
  return 1 if super

  unless story_id
    puts "Branch name must contain a Pivotal Tracker story id"
    return 1
  end

  puts "URL:           #{story.url}"
  puts "Story:         #{story.name}"
  puts "Description:   #{story.description}"

  return 0
end