Module: Inquisitor
- Defined in:
- lib/inquisitor.rb,
lib/inquisitor/web.rb,
lib/inquisitor/node.rb,
lib/inquisitor/contact.rb,
lib/inquisitor/version.rb,
lib/inquisitor/settings.rb
Defined Under Namespace
Classes: Contact, Node, Settings, Web
Constant Summary
collapse
- PATCH =
1
- MINOR =
1
- MAJOR =
0
- VERSION =
"#{MAJOR}.#{MINOR}.#{PATCH}".freeze
Class Method Summary
collapse
Class Method Details
.create_outpost(name = '') ⇒ Object
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/inquisitor.rb', line 14
def create_outpost(name = '')
outpost = Outpost::Application.new
outpost.name = name
Inquisitor::Contact.all.each do |contact|
outpost.add_notifier Outpost::Notifiers::Email, {
:from => Inquisitor.settings.mail_from,
:to => contact.email,
:subject => Inquisitor.settings.mail_subject
}
end
outpost
end
|
.settings ⇒ Object
29
30
31
|
# File 'lib/inquisitor.rb', line 29
def settings
@settings ||= Settings.new
end
|