aboutsummaryrefslogtreecommitdiffstats
path: root/lib/templates
diff options
context:
space:
mode:
Diffstat (limited to 'lib/templates')
-rw-r--r--lib/templates/installer.rb4
-rw-r--r--lib/templates/mailboxes/application_mailbox.rb3
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/templates/installer.rb b/lib/templates/installer.rb
new file mode 100644
index 0000000000..d739408d58
--- /dev/null
+++ b/lib/templates/installer.rb
@@ -0,0 +1,4 @@
+say "Copying application_mailbox.rb to app/mailboxes"
+copy_file "#{__dir__}/mailboxes/application_mailbox.rb", "app/mailboxes/application_mailbox.rb"
+
+environment "# Prepare the ingress controller used to receive mail\nconfig.action_mailbox.ingress = :amazon\n\n", env: 'production'
diff --git a/lib/templates/mailboxes/application_mailbox.rb b/lib/templates/mailboxes/application_mailbox.rb
new file mode 100644
index 0000000000..9386f9eb91
--- /dev/null
+++ b/lib/templates/mailboxes/application_mailbox.rb
@@ -0,0 +1,3 @@
+class ApplicationMailbox < ActionMailbox::Base
+ # route /something/i => :somewhere
+end