class GitPivotalTracker::Info

Public Instance Methods

run!() click to toggle source
Calls superclass method GitPivotalTracker::Base#run!
# 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