bin/flapjack-populator in flapjack-0.6.31 vs bin/flapjack-populator in flapjack-0.6.32
- old
+ new
@@ -11,10 +11,11 @@
end
require 'flapjack/configuration'
require 'flapjack/data/contact'
require 'flapjack/data/entity'
+require 'flapjack/data/event'
options = OpenStruct.new
options.config = File.join('etc', 'flapjack_config.yaml')
options.daemonize = nil
@@ -90,10 +91,10 @@
@persistence.quit
end
when "purge-events"
@persistence = get_redis_connection(config_env['redis'])
- Flapjack::Data.Event.purge_all(:redis => @persistence)
+ Flapjack::Data::Event.purge_all(:redis => @persistence)
@persistence.quit
else
puts "you need to give me something to do, eg a command like 'import-entities' or 'import-clients' etc"
raise ArgumentError