Sha256: 3d73614e21c903748b9e0208996191e29302d7e6136e68c28fae9567e13c45e5
Contents?: true
Size: 801 Bytes
Versions: 1
Compression:
Stored size: 801 Bytes
Contents
require 'pivotal-tracker' module DeployAndDeliver class Project attr_reader :project def initialize(context) PivotalTracker::Client.use_ssl = context[:pivotal_tracker_ssl] PivotalTracker::Client.token = context[:pivotal_tracker_token] @project = PivotalTracker::Project.find(context[:pivotal_tracker_project_id]) end def deliver_and_report stories = project.stories.all(:current_state => 'finished') stories.each{|story| story.update :current_state => 'delivered'} puts "* delivered #{stories.size} stories (#{stories.map(&:estimate).inject(:+)} points)" stories.each do |story| puts " - #{story.story_type.capitalize}: #{story.name} (#{story.estimate} #{story.estimate == 1 ? "point" : "points"})" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deploy_and_deliver-2.1.2 | lib/deploy_and_deliver.rb |