Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> GroupwiseFolder.find_all_by_path('/path').size
- => 5
- >> i = GroupwiseImport.new
- => #<GroupwiseImport id: nil, type: "GroupwiseImport", service_id: nil, import_status_id: nil, import_interval_type_id: nil, max_message_size: nil, start_time: nil, test_mode: nil, created_at: nil, updated_at: nil, mailbox: nil, server_name: nil, host: nil, port: nil, import_auth_type_id: nil, ssl: nil, username: nil, password: nil, folder: nil, exchange: nil, groupwise_post_office_id: nil, groupwise_folders_mode_id: 4202, collection_date_type_id: 4101, collection_date_days_ago: nil, collection_date_from: nil, collection_date_to: nil>
- >> i.mailbox = "test"
- => "test"
- >> i.server_name = "test"
- => "test"
- >> i.groupwise_post_office = GroupwisePostOffice.find :first
- => #<GroupwisePostOffice id: 1, groupwise_trusted_app_id: 1, service_id: 2, import_status_id: 4301, name: "Post Office One", host: "127.0.0.1", port: "993", ssl: true>
- >> i.service = GroupwiseImportService.find :first
- => #<GroupwiseImportService id: 2, type: "GroupwiseImportService", account_id: 1, service_status_id: 4311>
- >> i.import_interval_type = ImportIntervalType.find :first
- => #<ImportIntervalType id: 3020, token: "daily", title: "Daily", type: "ImportIntervalType">
- >> i.folder_attributes = [{:path => "/path"},{:path=>"/path1"}, {:path => "/path"}]
- => [{:path=>"/path"}, {:path=>"/path1"}, {:path=>"/path"}]
- >> i.save
- => true
- >> GroupwiseFolder.find_all_by_path('/path').size
- => 6
- >>
Add Comment
Please, Sign In to add comment