Sha256: 0704b1e408c4385e492897a96673061117b603652968cc70a8ee939261ac0d46

Contents?: true

Size: 692 Bytes

Versions: 2

Compression:

Stored size: 692 Bytes

Contents

module TaskMapper::Provider
  module Yoursystem
    # Project class for taskmapper-yoursystem
    #
    #
    class Project < TaskMapper::Provider::Base::Project
      #API = Yoursystem::Project # The class to access the api's projects
      # declare needed overloaded methods here
      
      
      # copy from this.copy(that) copies that into this
      def copy(project)
        project.tickets.each do |ticket|
          copy_ticket = self.ticket!(:title => ticket.title, :description => ticket.description)
          ticket.comments.each do |comment|
            copy_ticket.comment!(:body => comment.body)
            sleep 1
          end
        end
      end

    end
  end
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
taskmapper-0.8.1 lib/taskmapper/cli/commands/generate/provider/project.rb
taskmapper-0.8.0 lib/taskmapper/cli/commands/generate/provider/project.rb