Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- # a specific facets version
- require_gem 'facets', '= 1.4.5'
- require 'facets'
- require 'socket'
- require 'time'
- require 'og'
- require 'glue/timestamped'
- # uncomment this, if this is the first run or if you changed ClamavScanResult
- Og.create_schema = false
- # Og class, represents one entry in the database
- class ClamavScanResult
- # The entry has a input/change and access date
- is Timestamped
- property :path, String
- property :result, String
- property :username, String
- property :filesize, Integer
- end
- # Initialize database
- Og.start(:destroy => false, :evolve_schema => :add, :store => :mysql,
- :name => 'clamavdb', :user => 'testuser',
- :password => 'testpw', :classes => [ClamavScanResult])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement