From 4d15bc8054750dd0e256e734a2aa941d1eeb7054 Mon Sep 17 00:00:00 2001 From: damau Date: Tue, 12 Feb 2013 13:45:37 +0000 Subject: [PATCH] all now have standard interval field if desired reflected in super --- app/models/notification_services/campfire_service.rb | 4 ++-- app/models/notification_services/gtalk_service.rb | 2 +- app/models/notification_services/hipchat_service.rb | 2 +- app/models/notification_services/hoiio_service.rb | 4 ++-- app/models/notification_services/hubot_service.rb | 2 +- app/models/notification_services/pushover_service.rb | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/models/notification_services/campfire_service.rb b/app/models/notification_services/campfire_service.rb index 4457cda..bfa885f 100644 --- a/app/models/notification_services/campfire_service.rb +++ b/app/models/notification_services/campfire_service.rb @@ -1,7 +1,7 @@ if defined? Campy class NotificationServices::CampfireService < NotificationService Label = "campfire" - Fields = [ + Fields += [ [:subdomain, { :label => "Subdomain", :placeholder => "subdomain from http://{{subdomain}}.campfirenow.com" @@ -33,4 +33,4 @@ if defined? Campy campy.speak "[errbit] #{problem.app.name} #{notification_description problem} - http://#{Errbit::Config.host}/apps/#{problem.app.id.to_s}/problems/#{problem.id.to_s}" end end -end \ No newline at end of file +end diff --git a/app/models/notification_services/gtalk_service.rb b/app/models/notification_services/gtalk_service.rb index 4a4c41b..170cc93 100644 --- a/app/models/notification_services/gtalk_service.rb +++ b/app/models/notification_services/gtalk_service.rb @@ -1,6 +1,6 @@ class NotificationServices::GtalkService < NotificationService Label = "gtalk" - Fields = [ + Fields += [ [:subdomain, { :placeholder => "username@example.com", :label => "Username" diff --git a/app/models/notification_services/hipchat_service.rb b/app/models/notification_services/hipchat_service.rb index 8312bd9..e8f7db7 100644 --- a/app/models/notification_services/hipchat_service.rb +++ b/app/models/notification_services/hipchat_service.rb @@ -1,7 +1,7 @@ if defined? HipChat class NotificationServices::HipchatService < NotificationService Label = 'hipchat' - Fields = [ + Fields += [ [:api_token, { :placeholder => "API Token" }], diff --git a/app/models/notification_services/hoiio_service.rb b/app/models/notification_services/hoiio_service.rb index db70a76..655276b 100644 --- a/app/models/notification_services/hoiio_service.rb +++ b/app/models/notification_services/hoiio_service.rb @@ -1,6 +1,6 @@ class NotificationServices::HoiioService < NotificationService Label = "hoiio" - Fields = [ + Fields += [ [:api_token, { :placeholder => "App ID", :label => "App ID" @@ -39,4 +39,4 @@ class NotificationServices::HoiioService < NotificationService end end -end \ No newline at end of file +end diff --git a/app/models/notification_services/hubot_service.rb b/app/models/notification_services/hubot_service.rb index 9a56981..059ab90 100644 --- a/app/models/notification_services/hubot_service.rb +++ b/app/models/notification_services/hubot_service.rb @@ -1,6 +1,6 @@ class NotificationServices::HubotService < NotificationService Label = "hubot" - Fields = [ + Fields += [ [:api_token, { :placeholder => 'http://hubot.example.org:8080/hubot/say', :label => 'Hubot URL' diff --git a/app/models/notification_services/pushover_service.rb b/app/models/notification_services/pushover_service.rb index c0c5fda..10adc1f 100644 --- a/app/models/notification_services/pushover_service.rb +++ b/app/models/notification_services/pushover_service.rb @@ -1,6 +1,6 @@ class NotificationServices::PushoverService < NotificationService Label = "pushover" - Fields = [ + Fields += [ [:api_token, { :placeholder => "User Key", :label => "User Key" @@ -29,4 +29,4 @@ class NotificationServices::PushoverService < NotificationService 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") end -end \ No newline at end of file +end -- libgit2 0.21.2