From 08534a8164699017aa847fef62602abf6ec59e8f Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Thu, 24 Oct 2024 12:27:13 +1100 Subject: Add ActionFileExecutor and execute from CLI - Updated tests to use tempfile - Implemented initial ActionFileExecutor tests --- lib/cli.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/cli.rb') diff --git a/lib/cli.rb b/lib/cli.rb index f2b185d..3087212 100644 --- a/lib/cli.rb +++ b/lib/cli.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require_relative 'action_file_executor' + class CLI def initialize(args) @args = args @@ -8,7 +10,8 @@ class CLI def run file_path = @args[0] - puts "Running actions from file: #{file_path} against the family tree." + action_file_executor = ActionFileExecutor.new(file_path) + action_file_executor.execute_actions end private -- cgit v1.2.3