File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
lib/ombu_labs/notifications Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ def notify_new_contact(contact)
4
4
notifier . ping contact_message ( contact )
5
5
end
6
6
7
+ def notify_new_free_roadmap ( free_roadmap )
8
+ notifier = Slack ::Notifier . new ENV [ "SLACK_ROADRUNNER_WEBHOOK_URL" ]
9
+ notifier . ping free_roadmap_message ( free_roadmap )
10
+ end
11
+
7
12
private
8
13
9
14
def contact_message ( contact )
@@ -22,4 +27,18 @@ def contact_message(contact)
22
27
23
28
TEXT
24
29
end
30
+
31
+ def free_roadmap_message ( free_roadmap )
32
+ <<~TEXT
33
+ Hello <!subteam^#{ ENV [ "SLACK_GROUP_ID" ] } >!\n
34
+ #{ free_roadmap . name . titleize } has submitted a request in our Free Roadmap form :tada: :
35
+ Email: #{ free_roadmap . email }
36
+ Current Ruby Version: #{ free_roadmap . current_ruby_version }
37
+ Current Rails Version: #{ free_roadmap . current_rails_version }
38
+ Target Rails Version: #{ free_roadmap . target_rails_version }
39
+
40
+ Cheers,\n Your OmbuLabs Robot!
41
+
42
+ TEXT
43
+ end
25
44
end
Original file line number Diff line number Diff line change 1
1
module OmbuLabs
2
2
module Notifications
3
- VERSION = '0.1.3 '
3
+ VERSION = '0.1.4 '
4
4
end
5
5
end
You can’t perform that action at this time.
0 commit comments