Skip to content

Commit

Permalink
Added tasks import, updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dvorkin committed May 13, 2010
1 parent 0d36c30 commit 9e5c5b2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
9 changes: 7 additions & 2 deletions README
@@ -1,5 +1,10 @@
Highrise Importer plugin for Fat Free CRM 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
13 changes: 12 additions & 1 deletion tasks/crm_highrise_importer_tasks.rake
Expand Up @@ -7,12 +7,23 @@ namespace :crm do
desc "Import Highrise data" desc "Import Highrise data"
task :import => :environment do task :import => :environment do
FatFreeCRM::Highrise::Base.site = ENV['SITE'] # Ask user. FatFreeCRM::Highrise::Base.site = ENV['SITE'] # Ask user.
puts "Importing Highrise data..."


puts "Importing people..."
people, contacts = FatFreeCRM::Highrise::Import.people people, contacts = FatFreeCRM::Highrise::Import.people
puts " Importing related notes..."
FatFreeCRM::Highrise::Import.notes(people, contacts) 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 companies, accounts = FatFreeCRM::Highrise::Import.companies
puts " Importing related notes..."
FatFreeCRM::Highrise::Import.notes(companies, contacts) 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


end end
Expand Down

0 comments on commit 9e5c5b2

Please sign in to comment.