Sha256: ab8f4dcf28a3dbb871eda76e7c30697775d75eeca71b6df667af72c4fda0b3b9

Contents?: true

Size: 686 Bytes

Versions: 3

Compression:

Stored size: 686 Bytes

Contents

require 'deploy_and_deliver'
Capistrano::Configuration.instance.load do
  
  namespace :pivotal_tracker do
    def deliverer
      @deliverer ||= DeployAndDeliver::Project.new(self)
    end

    desc "deliver your project's 'finished' stories"
    task :deliver_stories do
      puts "* delivering tracker stories ..."
      deliverer.deliver_and_report
    end

    desc "Mark the deploy with a release story"
    task :mark_release do
      story = @deliverer.project.stories.create(
        :name => "#{ENV['USER']} released to #{stage} at #{Time.now.strftime("%x %X")}",
        :story_type => "release"
      )
      story.update(:current_state => "accepted")
    end
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deploy_and_deliver-2.1.3 lib/deploy_and_deliver/recipes.rb
deploy_and_deliver-2.1.2 lib/deploy_and_deliver/recipes.rb
deploy_and_deliver-2.1.1 lib/deploy_and_deliver/recipes.rb