Sha256: cb9e3225607368fcf511f1f7366f553246adb405b5fe93d75390b7ed2a790d37

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

require 'rubygems'
require 'ticketmaster'
require 'ticketmaster-pivotal'
require 'ticketmaster-lighthouse'

# copy all tickets and comments from pivotal tracker to new lighthouse project (the easy way)
pivotal = TicketMaster.new(:pivotal)
lighthouse = TicketMaster.new(:lighthouse)

from = pivotal.project(97107)
to = lighthouse.project!(:name => "Copy Test on #{Time.now}", 
                          :description => "A copy test")
                          
to.copy(from)

puts "Copy finished."

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ticketmaster-0.7.0 examples/tm_example_4.rb
ticketmaster-0.6.10 examples/tm_example_4.rb
ticketmaster-0.6.9 examples/tm_example_4.rb
ticketmaster-0.6.8 examples/tm_example_4.rb