Class: Achoo::Plugin::Ical
Instance Method Summary
collapse
#get_exception_reason, #handle_exception, #handle_fatal_exception
Instance Method Details
#at_startup ⇒ Object
14
15
16
|
# File 'lib/achoo/plugin/ical.rb', line 14
def at_startup
warm_up_ical_cache
end
|
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/achoo/plugin/ical.rb', line 18
def (date)
puts '-' * 80
puts "Calendar events for #{date}:"
puts '---'
begin
RC[:ical].each do |config|
Achoo::ICal.from_http_request(config).print_events(date)
end
rescue Exception => e
puts handle_exception("Failed to retrieve calendar events.", e)
end
end
|
#state_ok? ⇒ Boolean
12
|
# File 'lib/achoo/plugin/ical.rb', line 12
def state_ok?; RC.has_key?(:ical) && !RC[:ical].empty?; end
|