Sha256: caa438cfeb40470681c6da7575101e41f3a78617f580e919c5ca824563258bef
Contents?: true
Size: 866 Bytes
Versions: 5
Compression:
Stored size: 866 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib') require 'pivotal_to_pdf' require 'thor' class PivotalToPdfApp < Thor desc "story STORY_ID", "print a single story specifed by ID into a PDF file. The card will have a color stripe. The color will be green for features, yellow for chores and red for bugs" method_option :nocolor, :aliases => "-nc", :desc => "Make the card having no color stripe" def story(story_id) PivotalToPdf.story story_id, options[:nocolor] end desc "iteration", "print stories for the current iteration into a PDF file" method_option :nocolor, :aliases => "-nc", :desc => "Make the card having no color stripe" def iteration(iteration_number = "current") PivotalToPdf.iteration iteration_number, options[:nocolor] end end PivotalToPdfApp.start
Version data entries
5 entries across 5 versions & 1 rubygems