examples/event/basics.rb
require 'fog/openstack'
require 'time'
auth_url = "http://10.0.0.101:5000/v2.0/tokens"
username = 'admin'
password = 'D78JVyRnzJG8j7Mb6fgpeUMp7'
@connection_params = {
:openstack_auth_url => auth_url,
:openstack_username => username,
:openstack_api_key => password,
}
puts "### SERVICE CONNECTION ###"
event_service = Fog::OpenStack::Event.new(@connection_params)
p event_service
puts "### LIST EVENTS ###"
p event_service.events.all