Skip to content
Browse files

Added tasks import, updated README

  • Loading branch information...
1 parent 0d36c30 commit 9e5c5b2d0f2201459c448147ecb194cfb24c62fe @michaeldv michaeldv committed May 12, 2010
Showing with 19 additions and 3 deletions.
  1. +7 −2 README
  2. +12 −1 tasks/crm_highrise_importer_tasks.rake
View
9 README
@@ -1,5 +1,10 @@
Highrise Importer plugin for Fat Free CRM
-This plugin is under development and not ready for the actual use.
+Assumptions: one Highrise account which is mapped to Fat Free CRM admin account.
-Copyright (c) 2009 Michael Dvorkin, released under the GNU Affero General Public License
+ * Pull "dropbox" branch of Fat Free CRM, see http://github.com/michaeldv/fat_free_crm/network
+ * rake db:migrate
+ * ruby script/plugin install git@github.com:michaeldv/crm_highrise_importer.git
+ * rake crm:highrise:import SITE=[Your Highrise URL]
+
+Copyright (c) 2009-10 Michael Dvorkin, released under the GNU Affero General Public License
View
13 tasks/crm_highrise_importer_tasks.rake
@@ -7,12 +7,23 @@ namespace :crm do
desc "Import Highrise data"
task :import => :environment do
FatFreeCRM::Highrise::Base.site = ENV['SITE'] # Ask user.
- puts "Importing Highrise data..."
+ puts "Importing people..."
people, contacts = FatFreeCRM::Highrise::Import.people
+ puts " Importing related notes..."
FatFreeCRM::Highrise::Import.notes(people, contacts)
+ puts " Importing related tasks..."
+ FatFreeCRM::Highrise::Import.related_tasks(people, contacts)
+
+ puts "Importing companies..."
companies, accounts = FatFreeCRM::Highrise::Import.companies
+ puts " Importing related notes..."
FatFreeCRM::Highrise::Import.notes(companies, contacts)
+ puts " Importing related tasks..."
+ FatFreeCRM::Highrise::Import.related_tasks(companies, accounts)
+
+ puts "Importing tasks..."
+ FatFreeCRM::Highrise::Import.standalone_tasks
end
end

0 comments on commit 9e5c5b2

Please sign in to comment.
Something went wrong with that request. Please try again.