Sha256: 0a93150b0eefb55119146a5f5fbe12949842c8721a53761fca1378512b05dc65

Contents?: true

Size: 749 Bytes

Versions: 2

Compression:

Stored size: 749 Bytes

Contents

module TaskMapper::Provider
  module Lighthouse
    # Project class for taskmapper-lighthouse
    # 
    # 
    class Project < TaskMapper::Provider::Base::Project
      attr_accessor :prefix_options
      API = ::Lighthouse::Project  
      # Delete this project
      def destroy
        result = super
        result.is_a?(Net::HTTPOK)
      end
      
      # 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-lighthouse-0.10.0 lib/provider/project.rb
taskmapper-lighthouse-0.9.0 lib/provider/project.rb