From 2c17861470d9d7e63ac60f6782074c9a9491eb4b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 13 Dec 2018 16:34:02 -0800 Subject: Add installer --- lib/templates/installer.rb | 4 ++++ lib/templates/mailboxes/application_mailbox.rb | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 lib/templates/installer.rb create mode 100644 lib/templates/mailboxes/application_mailbox.rb (limited to 'lib/templates') 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 -- cgit v1.2.3