summaryrefslogtreecommitdiffhomepage
path: root/lib/dispatch/tool/files/register.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dispatch/tool/files/register.rb')
-rw-r--r--lib/dispatch/tool/files/register.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/dispatch/tool/files/register.rb b/lib/dispatch/tool/files/register.rb
new file mode 100644
index 0000000..6877c6c
--- /dev/null
+++ b/lib/dispatch/tool/files/register.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+module Dispatch
+ module Tool
+ module Files
+ TOOLS = [
+ READ_FILE,
+ WRITE_FILE,
+ EDIT_FILE,
+ CREATE_FILE,
+ LIST_FILES,
+ SEARCH_FILES
+ ].freeze
+
+ def self.register(registry)
+ TOOLS.each { |tool| registry.register(tool) }
+ registry
+ end
+ end
+ end
+end