summaryrefslogtreecommitdiffstats
path: root/toolkit/components/normandy/actions/ConsoleLogAction.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/normandy/actions/ConsoleLogAction.jsm')
-rw-r--r--toolkit/components/normandy/actions/ConsoleLogAction.jsm26
1 files changed, 26 insertions, 0 deletions
diff --git a/toolkit/components/normandy/actions/ConsoleLogAction.jsm b/toolkit/components/normandy/actions/ConsoleLogAction.jsm
new file mode 100644
index 0000000000..e8600ceaa9
--- /dev/null
+++ b/toolkit/components/normandy/actions/ConsoleLogAction.jsm
@@ -0,0 +1,26 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+"use strict";
+
+const { BaseAction } = ChromeUtils.import(
+ "resource://normandy/actions/BaseAction.jsm"
+);
+ChromeUtils.defineModuleGetter(
+ this,
+ "ActionSchemas",
+ "resource://normandy/actions/schemas/index.js"
+);
+
+var EXPORTED_SYMBOLS = ["ConsoleLogAction"];
+
+class ConsoleLogAction extends BaseAction {
+ get schema() {
+ return ActionSchemas["console-log"];
+ }
+
+ async _run(recipe) {
+ this.log.info(recipe.arguments.message);
+ }
+}