Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task :release_notes_reminder, :roles => :web do
- puts "*** RELEASE NOTES ***"
- f = File.read("README")
- lines = f.split("\n")
- notes = nil
- lines.each do |line|
- if line =~ /sprint/
- if notes.nil?
- notes = []
- else
- break
- end
- end
- notes << line if notes
- end
- notes.each do |note|
- puts note
- end
- puts "*** /RELEASE NOTES ***"
- end
Add Comment
Please, Sign In to add comment