[Bps-public-commit] rt-extension-notifysms branch, master, updated. f983957ea6490ad977cc2142354dfa7ae9802317

Craig Kaiser craig at bestpractical.com
Fri Jul 20 10:50:46 EDT 2018


The branch, master has been updated
       via  f983957ea6490ad977cc2142354dfa7ae9802317 (commit)
      from  db448de7419867e537f493de3def96904f5063a9 (commit)

Summary of changes:
 META.yml                      | 1 +
 README                        | 6 ++++++
 etc/initialdata               | 8 ++++++++
 lib/RT/Extension/NotifySMS.pm | 7 +++++++
 4 files changed, 22 insertions(+)
 create mode 100644 etc/initialdata

- Log -----------------------------------------------------------------
commit f983957ea6490ad977cc2142354dfa7ae9802317
Author: Craig Kaiser <craig at bestpractical.com>
Date:   Fri Jul 20 10:47:31 2018 -0400

    Add initial data file for scrip actions

diff --git a/META.yml b/META.yml
index b67fd5d..261b79f 100644
--- a/META.yml
+++ b/META.yml
@@ -16,6 +16,7 @@ meta-spec:
 name: RT-Extension-NotifySMS
 no_index:
   directory:
+    - etc
     - inc
 requires:
   perl: 5.10.1
diff --git a/README b/README
index 848ff94..d63b383 100644
--- a/README
+++ b/README
@@ -26,6 +26,12 @@ INSTALLATION
     make install
         May need root permissions
 
+    make initdb
+        Only run this the first time you install this module.
+
+        If you run this twice, you may end up with duplicate data in your
+        database.
+
     Edit your /opt/rt4/etc/RT_SiteConfig.pm
         If you are using RT 4.4 or greater, add this line:
 
diff --git a/etc/initialdata b/etc/initialdata
new file mode 100644
index 0000000..b258949
--- /dev/null
+++ b/etc/initialdata
@@ -0,0 +1,8 @@
+push @ScripActions, (
+    {
+        Name        => 'Notify Twilio',
+        Description => 'Send SMS messages using Twilio API',
+        ExecModule  => 'NotifyTwilio',
+        Argument    => 'All',
+    },
+);
diff --git a/lib/RT/Extension/NotifySMS.pm b/lib/RT/Extension/NotifySMS.pm
index 69fc50b..7ae2953 100644
--- a/lib/RT/Extension/NotifySMS.pm
+++ b/lib/RT/Extension/NotifySMS.pm
@@ -40,6 +40,13 @@ Works with RT 4.4.0
 
 May need root permissions
 
+=item C<make initdb>
+
+Only run this the first time you install this module.
+
+If you run this twice, you may end up with duplicate data
+in your database.
+
 =item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
 
 If you are using RT 4.4 or greater, add this line:

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list