Commit 4d15bc8054750dd0e256e734a2aa941d1eeb7054

Authored by damau
1 parent af36ec26
Exists in master and in 1 other branch production

all now have standard interval field if desired reflected in super

app/models/notification_services/campfire_service.rb
1 1 if defined? Campy
2 2 class NotificationServices::CampfireService < NotificationService
3 3 Label = "campfire"
4   - Fields = [
  4 + Fields += [
5 5 [:subdomain, {
6 6 :label => "Subdomain",
7 7 :placeholder => "subdomain from http://{{subdomain}}.campfirenow.com"
... ... @@ -33,4 +33,4 @@ if defined? Campy
33 33 campy.speak "[errbit] #{problem.app.name} #{notification_description problem} - http://#{Errbit::Config.host}/apps/#{problem.app.id.to_s}/problems/#{problem.id.to_s}"
34 34 end
35 35 end
36   -end
37 36 \ No newline at end of file
  37 +end
... ...
app/models/notification_services/gtalk_service.rb
1 1 class NotificationServices::GtalkService < NotificationService
2 2 Label = "gtalk"
3   - Fields = [
  3 + Fields += [
4 4 [:subdomain, {
5 5 :placeholder => "username@example.com",
6 6 :label => "Username"
... ...
app/models/notification_services/hipchat_service.rb
1 1 if defined? HipChat
2 2 class NotificationServices::HipchatService < NotificationService
3 3 Label = 'hipchat'
4   - Fields = [
  4 + Fields += [
5 5 [:api_token, {
6 6 :placeholder => "API Token"
7 7 }],
... ...
app/models/notification_services/hoiio_service.rb
1 1 class NotificationServices::HoiioService < NotificationService
2 2 Label = "hoiio"
3   - Fields = [
  3 + Fields += [
4 4 [:api_token, {
5 5 :placeholder => "App ID",
6 6 :label => "App ID"
... ... @@ -39,4 +39,4 @@ class NotificationServices::HoiioService &lt; NotificationService
39 39 end
40 40  
41 41 end
42   -end
43 42 \ No newline at end of file
  43 +end
... ...
app/models/notification_services/hubot_service.rb
1 1 class NotificationServices::HubotService < NotificationService
2 2 Label = "hubot"
3   - Fields = [
  3 + Fields += [
4 4 [:api_token, {
5 5 :placeholder => 'http://hubot.example.org:8080/hubot/say',
6 6 :label => 'Hubot URL'
... ...
app/models/notification_services/pushover_service.rb
1 1 class NotificationServices::PushoverService < NotificationService
2 2 Label = "pushover"
3   - Fields = [
  3 + Fields += [
4 4 [:api_token, {
5 5 :placeholder => "User Key",
6 6 :label => "User Key"
... ... @@ -29,4 +29,4 @@ class NotificationServices::PushoverService &lt; NotificationService
29 29 notification.notify(api_token, "#{notification_description problem}", :priority => 1, :title => "Errbit Notification", :url => "http://#{Errbit::Config.host}/apps/#{problem.app.id.to_s}", :url_title => "Link to error")
30 30  
31 31 end
32   -end
33 32 \ No newline at end of file
  33 +end
... ...