Skip to content

Instantly share code, notes, and snippets.

@tansengming
Created February 20, 2012 05:59
Show Gist options
  • Select an option

  • Save tansengming/1868062 to your computer and use it in GitHub Desktop.

Select an option

Save tansengming/1868062 to your computer and use it in GitHub Desktop.
rake task to deliver all finished using the pivotal API
PIVOTAL = {
:token => 'your_token',
:project_id => 'your_project_id'
}
namespace :pivotal do
task :deliver_all_finished => :environment do
line = Cocaine::CommandLine.new("curl", "-H 'X-TrackerToken: #{PIVOTAL[:token]}' -X PUT https://www.pivotaltracker.com/services/v3/projects/#{PIVOTAL[:project_id]}/stories/deliver_all_finished -d ''")
puts "Running #{line.command}"
line.run
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment