Guest User

Untitled

a guest
Mar 12th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. >> GroupwiseFolder.find_all_by_path('/path').size
  2. => 5
  3. >> i = GroupwiseImport.new
  4. => #<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>
  5. >> i.mailbox = "test"
  6. => "test"
  7. >> i.server_name = "test"
  8. => "test"
  9. >> i.groupwise_post_office = GroupwisePostOffice.find :first
  10. => #<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>
  11. >> i.service = GroupwiseImportService.find :first
  12. => #<GroupwiseImportService id: 2, type: "GroupwiseImportService", account_id: 1, service_status_id: 4311>
  13. >> i.import_interval_type = ImportIntervalType.find :first
  14. => #<ImportIntervalType id: 3020, token: "daily", title: "Daily", type: "ImportIntervalType">
  15. >> i.folder_attributes = [{:path => "/path"},{:path=>"/path1"}, {:path => "/path"}]
  16. => [{:path=>"/path"}, {:path=>"/path1"}, {:path=>"/path"}]
  17. >> i.save
  18. => true
  19. >> GroupwiseFolder.find_all_by_path('/path').size
  20. => 6
  21. >>
Add Comment
Please, Sign In to add comment