-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathRhoForce.yml
37 lines (34 loc) · 843 Bytes
/
RhoForce.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- !ruby/object:Source
attributes:
name: RhoForce
prolog: |
class Account < ActiveRecord::Base
establish_connection(:url=>"https://www.salesforce.com",
:adapter => 'activesalesforce',
:username => @source.login,
:password => @source.password)
end
updated_at:
deletecall:
createcall:
type:
url: http://localhost:3000/sf.wsdl
sync: p "Syncing" accounts.each do |x| name_value_list.each do |y| o=ObjectValue.new [email protected] o.object=x.id o.attrib=y.name o.value=y.value o.update_type="query" o.save end end
method:
updatecall:
call: |
accounts=Account.find :all
password: ac
login: [email protected]
epilog:
created_at:
attributes_cache: {}
changed_attributes:
name:
prolog:
url:
sync:
call:
password:
login:
new_record: true